Response to WSL2 docker throwing an error after updating Docker for Windows

$ docker-compose ps
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

What did you do ...

Speaking of which, it seems that Docker for Windows has updated something ...

name version
docker for desktop 2.3.0.5
Engine 19.03.12
Notary 0.6.1
Compose 1.27.2
Credential Helper 0.6.3
Kubernetes v1.16.5

Go around the error for the time being

reference If you use WSL2, you can't use Docker

After making this setting, I confirmed that it works safely in WSL2.

$ docker-compose ps
Name   Command   State   Ports
------------------------------

Done

I'm glad I didn't have anything.

Recommended Posts

Response to WSL2 docker throwing an error after updating Docker for Windows
Docker Desktop for Windows 2.4.0.0 (48506) Startup error after update
Introducing Docker Desktop for Windows on WSL2
Operate Docker Desktop for Windows on Linux (WSL)
[Error resolution] Occurs when trying to build an environment for spring with docker
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
Docker for Windows: MySQL container does not start when migrating from Hyper-v to WSL2
How to create an environment that uses Docker (WSL2) and Vagrant (VirtualBox) together on Windows
I can't find the docker image after updating to docker desktop 2.4.0.0
After setting database to mysql, bundle install causes an error
Display an error screen during the download process to response
WSL2 + Docker Desktop for Windows does not launch only MySQL container
Processing to issue an error message
Articles referred to for incorporating Docker
Using Docker on Windows10 Home WSL2
Challenge to install WSL2 and docker