简体   繁体   English

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

[英]“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.

相关问题 dockerd vs docker-containerd vs docker-runc vs docker-containerd-ctr vs docker-containerd-shim - dockerd vs docker-containerd vs docker-runc vs docker-containerd-ctr vs docker-containerd-shim Docker,\\“ping\\”:在 $PATH 中找不到可执行文件”:未知 - Docker, \“ping\”: executable file not found in $PATH": unknown Docker 撰写:$PATH 中未找到可执行文件:未知 - Docker Compose: executable file not found in $PATH: unknown 在 $PATH 中找不到 Docker 撰写可执行文件”:未知 - Docker compose executable file not found in $PATH": unknown Docker – “flower”:$PATH 中未找到可执行文件:未知 - Docker – "flower": executable file not found in $PATH: unknown docker:在 $PATH 中找不到可执行文件”:未知 - docker: executable file not found in $PATH": unknown Dockerd 无法作为守护进程启动,并出现错误“exec:“docker-containerd”:$PATH 中找不到可执行文件” - Dockerd can't start as daemon with error "exec: "docker-containerd": executable file not found in $PATH" Docker 网络中的 SQL 服务器:在 $PATH 中找不到可执行文件“:未知 - SQL Server in Docker network: executable file not found in $PATH": unknown exec:“docker-runc”:在$ PATH中找不到可执行文件:未知 - exec: “docker-runc”: executable file not found in $PATH: unknown Docker 安装映像错误可执行文件未在 $PATH 中找到:未知 - Docker mounting image error executable file not found in $PATH: unknown
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM