[英]“docker-containerd-shim”: executable file not found in $PATH: unknown
Docker is not able to start containers anymore because docker-containerd-shim executable was no found in $PATH. Docker无法再启动容器,因为在$ PATH中找不到docker-containerd-shim可执行文件。
The thing is that docker-containerd-shim executable is not found anywhere on the machine while there is another executable with almost the same name: "containerd-shim" under /usr/bin directory. 问题是在机器上的任何地方都找不到docker-containerd-shim可执行文件,而另一个可执行文件的名称几乎相同:/ usr / bin目录下的“containerd-shim”。
I restarted the service and everything is back to normal. 我重新启动了服务,一切恢复正常。 Does creating symbolic link "docker-containerd-shim" ---> "container-shim" could solve the problem? 创建符号链接“docker-containerd-shim”--->“container-shim”是否可以解决问题?
Docker version: 18.09.7 OS: Ubuntu 16.04 LTS Docker版本:18.09.7操作系统:Ubuntu 16.04 LTS
We had a similar error in our Jenkins pipeline. 我们在Jenkins管道中遇到了类似的错误。 Reinstalling docker with a stable channel fixed it. 重新安装具有稳定通道的docker固定它。
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
( https://docs.docker.com/install/linux/docker-ce/ubuntu/ ) ( https://docs.docker.com/install/linux/docker-ce/ubuntu/ )
So we assume it's a nightly / test build problem. 所以我们假设这是一个夜间/测试构建问题。 (don't remember which channel we had before) (不记得我们之前有过哪个频道)
This happened to me on an Google Compute Engine. 我在Google Compute Engine上发生了这种情况。 The VM runs an gitlab-runner
for CI purpose. VM运行gitlab-runner
用于CI目的。
It seems like the nigly upgrade, which is enabled for this image ubuntu-1804-bionic-v20180723
caused a restart which lead to this misbehaviour. 看起来像是这个图像启用了nigly升级, ubuntu-1804-bionic-v20180723
导致了重启,导致了这种不当行为。
[...]
Jul 9 06:30:59 gitlab-runner systemd[1]: Starting Daily apt upgrade and clean activities...
Jul 9 06:31:22 gitlab-runner systemd[1]: Reloading.
Jul 9 06:31:23 gitlab-runner systemd[1]: Stopping LSB: automatic crash report generation...
Jul 9 06:31:23 gitlab-runner apport[21840]: * Stopping automatic crash report generation: apport
Jul 9 06:31:23 gitlab-runner apport[21840]: ...done.
Jul 9 06:31:23 gitlab-runner systemd[1]: Stopped LSB: automatic crash report generation.
Jul 9 06:31:23 gitlab-runner systemd[1]: Reloading.
Jul 9 06:31:24 gitlab-runner systemd[1]: message repeated 5 times: [ Reloading.]
Jul 9 06:31:25 gitlab-runner systemd[1]: Starting LSB: automatic crash report generation...
Jul 9 06:31:25 gitlab-runner apport[22110]: * Starting automatic crash report generation: apport
Jul 9 06:31:25 gitlab-runner apport[22110]: ...done.
Jul 9 06:31:25 gitlab-runner systemd[1]: Started LSB: automatic crash report generation.
Jul 9 06:31:32 gitlab-runner systemd[1]: Reloading.
Jul 9 06:31:33 gitlab-runner systemd[1]: docker.service: Current command vanished from the unit file, execution of the command list won't be resumed.
Jul 9 06:31:36 gitlab-runner systemd[1]: Reloading.
Jul 9 06:31:36 gitlab-runner systemd[1]: Reloading.
Jul 9 06:31:36 gitlab-runner systemd[1]: Starting containerd container runtime...
Jul 9 06:31:36 gitlab-runner systemd[1]: Started containerd container runtime.
Jul 9 06:31:36 gitlab-runner systemd[1]: Reloading.
[...]
Indeed, rebooting fixed this issue. 确实,重启修复了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.