docker删除报错Error response from daemon: conflict: unable to deleteXXXXX解决方案_xiangxianghehe的博客-CSDN博客

来源: docker删除报错Error response from daemon: conflict: unable to deleteXXXXX解决方案_xiangxianghehe的博客-CSDN博客

docker删除镜像报错,docker images后输出如下:

REPOSITORY                             TAG                        IMAGE ID            CREATED             SIZE
nvidia/cuda                            9.0-base                   74f5aea45cf6        6 weeks ago         134MB
paddlepaddle/paddle                    1.1.0-gpu-cuda8.0-cudnn7   b3cd25f64a2a        8 weeks ago         2.76GB
hub.baidubce.com/paddlepaddle/paddle   1.1.0-gpu-cuda8.0-cudnn7   b3cd25f64a2a        8 weeks ago         2.76GB
paddlepaddle/paddle                    1.1.0-gpu-cuda9.0-cudnn7   0df4fe3ecea3        8 weeks ago         2.89GB
hub.baidubce.com/paddlepaddle/paddle   1.1.0-gpu-cuda9.0-cudnn7   0df4fe3ecea3
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

第一个镜像直接docker rmi 74f5aea45cf6就删除成功了,然而后面两个镜像都是成对出现,直接docker rmi删除失败,报错信息如下:

Error response from daemon:
conflict: unable to delete b3cd25f64a2a (must be forced) - image 
is referenced in multiple repositories
  • 1
  • 2
  • 3

解决方案:

首先docker rmi时指定名称,而非image id,然后再执行docker rmi -f image idj即可:

docker rmi paddlepaddle/paddle:1.1.0-gpu-cuda8.0-cudnn7
docker rmi -f b3cd25f64a2a
赞(0) 打赏
分享到: 更多 (0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏