[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 (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

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