【问题标题】:"docker-containerd-shim": executable file not found in $PATH: unknown“docker-containerd-shim”:在 $PATH 中找不到可执行文件:未知
【发布时间】:2019-07-09 09:47:31
【问题描述】:

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 同样的问题
  • 附言。重启我的机器是固定的
  • 哇,为我 +1,使用gitlab-runner。升级和重启修复。奇怪...
  • 我还必须重新启动整个机器,而不仅仅是服务。可能是不完整的系统更新(运行 Ubuntu Server 18.04)。

标签: docker ubuntu-16.04


【解决方案1】:

我们在 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/)

所以我们假设这是一个夜间/测试构建问题。 (不记得我们之前有哪个频道)

【讨论】:

    【解决方案2】:

    这发生在我的 Google Compute Engine 上。 VM 运行 gitlab-runner 用于 CI 目的。

    似乎为该图像启用的 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.
    [...]
    

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

    【讨论】:

    • 是的,我知道,但我正在寻找一种在每次遇到此问题时不重新启动机器的方法。
    • @TayebBenAchour 据我了解,此问题与 docker 安装的升级有关。所以,改写一下,您希望启用自动更新,但没有任何东西(包括 docker)应该被破坏?我想这不会发生。我的意见?在生产机器上禁用自动升级;)
    猜你喜欢
    • 2021-09-16
    • 1970-01-01
    • 2020-03-31
    • 2022-09-23
    • 2019-01-16
    • 2015-01-25
    • 1970-01-01
    • 1970-01-01
    • 2021-11-23
    相关资源
    最近更新 更多