问题:
不能停止、杀死、删除容器,使用以下命令得到错误消息:
docker stop <container-id>
Error response from daemon: cannot stop container: <container-id>: tried to kill container, but did not receive an exit event
docker kill <container-id>
Error response from daemon: cannot kill container: <container-id>: tried to kill container, but did not receive an exit event
docker rm <container-id>
Error response from daemon: You cannot remove a running container <container-id>. Stop the container before attempting removal or force remove
无法停止、杀死、删除容器,因为没有接收退出事件“receive an exit event”。文章来源:https://www.toymoban.com/news/detail-733862.html
解决方法:
没有找到强制停止容器的方法,只能重启容器:文章来源地址https://www.toymoban.com/news/detail-733862.html
# for Linux
systemctl restart docker
# for Mac
# 杀死应用程序并重新打开
killall Docker && open /Applications/Docker.app
到了这里,关于无法停止删除容器,Mac重启Docker的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!