删除镜像docker rmi IMAGE ID提示image is referenced in multiple repositories

现象:

# docker rmi f8ab12e03d53删除镜像提示Error response from daemon: conflict: unable to delete f8ab12e03d53 (must be forced) - image is referenced in multiple repositories

原因:

f8ab12e03d53这个镜像id指向了两个repository,因此无法删除

解决办法:

删除时可以用repository和tag的方式来删除

docker rmi 192.168.0.1/you/tom:1.0.8

posted @ 2021-05-12 15:26  John_2011  阅读(659)  评论(0编辑  收藏  举报