"docker-containerd-shim":在$PATH中找不到可执行文件:未知。

9

Docker无法启动容器,因为在$PATH中找不到docker-containerd-shim可执行文件。

问题在于该机器上没有找到docker-containerd-shim可执行文件,但是在/usr/bin目录下有另一个名字几乎相同的可执行文件:“containerd-shim”。

我重新启动了服务,一切恢复正常。创建符号链接“docker-containerd-shim” ---> “container-shim”能够解决这个问题吗?

Docker版本:18.09.7 操作系统:Ubuntu 16.04 LTS


我也遇到了同样的问题,OMG +1。 - Yegor Zaremba
3
重启我的机器解决了它。 - Yegor Zaremba
哇,+1给我,使用 gitlab-runner。升级并重新启动解决了问题。奇怪... - Max
我不得不重新启动整个机器,而不仅仅是服务。可能是系统更新不完整(运行Ubuntu Server 18.04)。 - Soren Bjornstad
2个回答

2

我们在 Jenkins 流水线中遇到了类似的错误。 重新安装 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/


0

我在Google Compute Engine上遇到了这个问题。虚拟机运行gitlab-runner用于CI目的。

似乎是启用了此镜像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.
[...]

确实,重新启动解决了这个问题。


是的,我知道,但我正在寻找一种方法,以避免每次遇到此问题时都重新启动机器。 - Tayeb Ben Achour
据我所理解,这个问题与docker安装的升级有关。因此,重新表述一下,您希望启用自动更新,但是不希望出现任何问题(包括docker)?我想这是不可能的。我的建议是在生产机器上禁用自动升级 ;) - Max

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接