人的一生,有许多事情,是需要放在心里慢慢回味的,过去的就莫要追悔,一切向前看吧 任何打击都不足以成为你堕落的借口,即使你改变不了这个世界,你却依然可以改变自己,选择条正确的路永远走下去。
返回顶部

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

删除镜像id(注意:只有当镜像id对应标签仅剩一个时,才能使用镜像id的方式进行删除;否则出现如下报错
或者也可以在最后加上-f选项,一次性删除)

 1 [root@server1 yum.repos.d]# docker tag nginx:xin nginx:latest
 2 [root@server1 yum.repos.d]# docker images
 3 REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
 4 nginx               latest              bc9a0695f571        8 hours ago         133MB
 5 nginx               xin                 bc9a0695f571        8 hours ago         133MB
 6 [root@server1 yum.repos.d]# docker rmi bc9a0695f571          #删除一个报错
 7 Error response from daemon: conflict: unable to delete bc9a0695f571 (must be forced) - image is referenced in multiple repositories
 8 [root@server1 yum.repos.d]# docker rmi -f bc9a0695f571       #加上-f可以一次性删除两个
 9 Untagged: nginx:latest
10 Untagged: nginx:xin
11 Untagged: nginx@sha256:6b1daa9462046581ac15be20277a7c75476283f969cb3a61c8725ec38d3b01c3
12 Deleted: sha256:bc9a0695f5712dcaaa09a5adc415a3936ccba13fc2587dfd76b1b8aeea3f221c
13 Deleted: sha256:a6862ade3b91fdde2aa8a3d77fdcc95b1eb6c606be079c11b7f97f249d0e731d
14 Deleted: sha256:32bcbe3740b68d0625744e774b404140366c0c4a2b2eadf32280d66ba001b4fb
15 Deleted: sha256:2dc5e43f496e41a18c016904b6665454a53be22eb4dcc1b468d864b4e2d1f311
16 Deleted: sha256:5fe6a7c579cd9fbcfa604810974c4c0c16893f4c40bc801545607ebd0accea74
17 Deleted: sha256:f5600c6330da7bb112776ba067a32a9c20842d6ecc8ee3289f1a713b644092f8

 

posted @ 2020-11-25 17:18  yy1299050947  阅读(314)  评论(0编辑  收藏  举报