docker stop container 報錯:tried to kill container, but did not receive an exit event
問(wèn)題現象
執行docker stop xxxx報錯如下:
Error response from daemon: cannot stop container: xxxx: tried to kill container, but did not receive an exit event
執行下面命令重啟docker,發(fā)現container依舊在,依舊無(wú)法停止。
systemctl restart docker
解決方案
- 通過(guò)
docker ps
查看container。 - 通過(guò)下面命令查找
ps awx | grep containerd-shim | grep <container_id>
操作系統中的進(jìn)程id。 - 使用kill -9 xxx將上一步查找到的進(jìn)程ip殺掉。
- 使用docker rm xxxx刪除當前container。
- 按照之前創(chuàng )建container的方式創(chuàng )建container。
原因
未知,不懂。
標 題:《docker stop container 報錯:tried to kill container, but did not receive an exit event》
作 者:zeekling
提 示:轉載請注明文章轉載自個(gè)人博客:浪浪山旁那個(gè)村
??
問(wèn)題解決就好,至于原因嘛,