問題:
不能停止、殺死、刪除容器,使用以下命令得到錯誤消息:
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”。文章來源:http://www.zghlxwxcb.cn/news/detail-733862.html
解決方法:
沒有找到強(qiáng)制停止容器的方法,只能重啟容器:文章來源地址http://www.zghlxwxcb.cn/news/detail-733862.html
# for Linux
systemctl restart docker
# for Mac
# 殺死應(yīng)用程序并重新打開
killall Docker && open /Applications/Docker.app
到了這里,關(guān)于無法停止刪除容器,Mac重啟Docker的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!