docker stop container 报错:tried to kill container, but did not receive an exit event

问题现象

执行docker stop xxxx报错如下:

Error response from daemon: cannot stop container: xxxx: tried to kill container, but did not receive an exit event

执行下面命令重启docker,发现container依旧在,依旧无法停止。

systemctl restart docker

解决方案

  • 通过docker ps查看container。
  • 通过下面命令查找ps awx | grep containerd-shim | grep <container_id>操作系统中的进程id。
  • 使用kill -9 xxx将上一步查找到的进程ip杀掉。
  • 使用docker rm xxxx删除当前container。
  • 按照之前创建container的方式创建container。

原因

未知,不懂。



标 题:《docker stop container 报错:tried to kill container, but did not receive an exit event
作 者:zeekling
提 示:转载请注明文章转载自个人博客:浪浪山旁那个村

    评论
    2 评论
    2024-06-08 15:33 回复»

    😄

    2024-06-06 08:47 回复»

    问题解决就好,至于原因嘛,

avatar

取消