我无法停止、删除或杀死我的 Docker 容器。以下是使用它们的命令和相应的错误消息:
1. docker stop <container-id>
2. docker kill <container-id>
3. docker rm <container-id>
我明白了
1. Error response from daemon: cannot stop container: <container-id>: tried to kill container, but did not receive an exit event
2. Error response from daemon: cannot kill container: <container-id>: tried to kill container, but did not receive an exit event
3. Error response from daemon: You cannot remove a running container <container-id>. Stop the container before attempting removal or force remove
使用sudo为所有内容添加前缀后,错误消息相同。使用--force运行上述所有命令时也会出现相同的消息。我该如何解决这个问题?似乎我无法停止、杀死或删除容器,因为它没有“接收到退出事件”。这里没有任何帮助:Error response from daemon: cannot stop container - signaling init process caused "permission denied"。
systemctl restart docker
重启docker
服务。 - Saeeddocker stop container_id
,看看问题是否已经解决。 - Saeed