简体   繁体   中英

Getting error while running docker run :Error response from daemon

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.

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.

使用以下命令重新启动docker服务,它将开始工作。

systemctl restart docker

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM