Docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock

when i install docker engine on ubuntu wsl
I use command
docker run hello-world
it show
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
after i wsl --install on power shell
i use command
docker run -d -p 80:80 docker/getting-started
it show

docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create”: open //./pipe/docker_engine: The system cannot find the file specified.```

on docker desktop
quick start guide > first clone repository
it show

PS C:\Users\chat_> docker run --name repo alpine/git clone GitHub - docker/getting-started: Getting started with Docker
docker: Error response from daemon: open \.\pipe\docker_engine_linux: The system cannot find the file specified.
See ‘docker run --help’.

what should i do ??

Did you fix it? I am having the same issue

1 Like

here is my debug