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

时间:2019-07-09 09:47:31

标签: docker ubuntu-16.04

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

2 个答案:

答案 0 :(得分:1)

我们在詹金斯管道中也有类似的错误。 使用稳定的通道重新安装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/

因此,我们认为这是一个夜间/测试构建问题。 (不记得我们以前有哪个频道)

答案 1 :(得分:0)

这是我在Google Compute Engine上发生的。 VM运行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.
[...]

实际上,重新启动已解决此问题。

相关问题