问题
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