[fix] docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory.


% docker run --name dev -d ubuntu:latest
docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory. See 'docker run --help'.

If you are trying to execute a docker command and you get the above error, it is more likely that the docker desktop app (or the daemon) has not yet started completely.

Fix:

Just make sure that Docker Desktop App is running and has started completely before you try to run a command.

Error response from daemon- dial unix docker.raw.sock- connect- no such file or directory

As you may see in the above image, I opened the Docker Desktop using the command line and immediately ran a docker run command which failed as dial unix docker.raw.sock: connect was not yet created, running the same command after few moments worked!

-


Have Questions? Post them here!

Top Hashtags:

Advertisements

Advertisements




Advertisements