[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!

-

Facing issues? Have Questions? Post them here! I am happy to answer!


Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap