Getting error while running docker run :Error response from daemon

倾然丶 夕夏残阳落幕 提交于 2021-02-07 16:00:48

问题


Getting error while running docker command. I have successfully install docker in Google Cloud VM. I have installed ubuntu 18.04 image.

After install when running docker run I am getting below error:

docker: Error response from daemon: failed to start shim: exec: "docker-containerd-shim": executable file not found in $PATH: unknown.

回答1:


What worked for me when I got this error:

failed to start shim: exec: "docker-containerd-shim": executable file not found in $PATH: unknown

  • sudo apt update
  • sudo apt upgrade
  • sudo reboot 0
  • sudo reboot 0 (Yes, I had to reboot twice, a *** System restart required *** message was the clue.)

Then my Docker commands worked again.




回答2:


Restart the docker service using following command and It will start working.

systemctl restart docker



回答3:


I had the same error:

failed to start shim: exec: "docker-containerd-shim": executable file not found in $PATH: unknown

Worked with the commands

1-systemctl restart docker
2-systemctl daemon-reload



回答4:


I also had the same error. I found that this error is related to the update/upgrade of docker. It might happen that you have enabled automatic updates enabled(please disable it).

Btw it also works for me on restarting the docker.

you can also run this command:

systemctl restart docker


来源:https://stackoverflow.com/questions/54269687/getting-error-while-running-docker-run-error-response-from-daemon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!