本地DOCKER删除镜像时报错解决办法

编程

C:Usershongcq>docker rmi 6bef6f0a19bc

Error response from daemon: conflict: unable to delete 6bef6f0a19bc (must be forced) - image is being used by stopped container 04d6db5cd501

解决:

C:Usershongcq>docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

04d6db5cd501 6bef6f0a19bc "/bin/sh -c "set -xe…" 29 hours ago Exited (100) 29 hours ago suspicious_knuth

662177dcbc70 6bef6f0a19bc "/bin/sh -c "set -xe…" 29 hours ago Exited (127) 29 hours ago suspicious_ishizaka

bb483b33756a 6bef6f0a19bc "/bin/sh -c "set -xe…" 29 hours ago Exited (100) 29 hours ago pensive_rhodes

c21eb26103c4 6bef6f0a19bc "/bin/sh -c "set -xe…" 30 hours ago Exited (127) 30 hours ago infallible_vaughan

8ef5b993bfc7 6bef6f0a19bc "/bin/sh -c "apk upd…" 30 hours ago Exited (127) 30 hours ago hardcore_keller

cb08662a774d 69712da036c6 "/bin/sh -c "apk upd…" 8 days ago Exited (127) 8 days ago quizzical_easley

660e0d4e858f d6fffba05ad8 "bash" 8 days ago Exited (137) 8 days ago clever_shockley

444c08745b3a 26466a9409d4 "bash" 8 days ago Exited (137) 8 days ago charming_kirch

95a1b01b3936 1879fb877e02 "/bin/sh -c "apk upd…" 2 weeks ago Exited (2) 2 weeks ago funny_pike

63e29c69c6b5 3538c13fb0e0 "/bin/sh -c "apk upd…" 3 weeks ago Exited (1) 3 weeks ago festive_zhukovsky

05dcbaae05fc 7bb172000a7e "/bin/sh -c "apk upd…" 3 weeks ago Exited (2) 3 weeks ago confident_colden

C:Usershongcq>docker rm 04d6db5cd501

04d6db5cd501

再删除即可,如果还提示有就再docker rm.

2.报错:

C:Usershongcq>docker rmi b71b18910d13

Error response from daemon: conflict: unable to delete b71b18910d13 (must be forced) - image is referenced in multiple repositories

解决:

C:Users洪成前>docker rmi xx-microsvr:4.8.5

Untagged: xx-microsvr:4.8.5

使用REPOSITORY+TAG的方式删除即可。

以上是 本地DOCKER删除镜像时报错解决办法 的全部内容, 来源链接: utcz.com/z/513609.html

回到顶部