来源: 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 id
j即可:
docker rmi paddlepaddle/paddle:1.1.0-gpu-cuda8.0-cudnn7
docker rmi -f b3cd25f64a2a