[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!
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.