docker 同时停止删除容器 强制删除容器

情况1:想一步搞定停止并删除

docker rm -f xxx

情况2:有时候容器stop不了,需要强制删除,删除后须将占用的network断掉 否则会报endpoint with name xxx already exists in network bridge/host

docker rm -f xxx

docker network disconnect --force bridge/host xxx

docker network inspect bridge/host
 

发布了57 篇原创文章 · 获赞 540 · 访问量 486万+

猜你喜欢

转载自blog.csdn.net/whatday/article/details/104087066