簡體   English   中英

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

[英]“docker-containerd-shim”: executable file not found in $PATH: unknown

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

我們在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/

所以我們假設這是一個夜間/測試構建問題。 (不記得我們之前有過哪個頻道)

我在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.
[...]

確實,重啟修復了這個問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM