【BUG日记】【Dokcer】删除容器的时候...
2020-05-17 本文已影响0人
南方者
【日期】:2020 / 5 / 9
【问题】:在删除容器的时候,发现删除不了,并报错。
【错误描述】:Error response from daemon: You cannot remove a running container 3dee257e0d3678152ffefd3d7775757d95974f68e2eed7657841ebc45b1a2807. Stop the container before attempting removal or use -f.

【原因】:该容器正在运行中,不能直接删除
【如何发现】:把错误描述百度搜素,了解发现。
【如何修复】:先停止该容器,再进行删除容器操作。
【总结】:更多时候,还是需要多了解Docker操作、底层结构。