docker镜像无法删除问题

转自: https://blog.csdn.net/jiangshouzhuang/article/details/53749089

1、首先查看镜像

docker images

REPOSITORY                             TAG                 IMAGE ID                  CREATED               SIZE
jenkins                                2.19.4              ff6f0851ef57             2 weeks ago           714.1 MB
jenkins/jenkins                        2.19.4              ff6f0851ef57             2 weeks ago           714.1 MB
192.168.1.110/centos/centos            7.2                 38ea04e19303            12 months ago          194.6 MB
192.168.1.111/centos/centos            7.2                 38ea04e19303            12 months ago          194.6 MB

2、执行命令,指定image id删除

docker rmi 38ea04e19303


3、如遇到下述命令

Error response from daemon: conflict: unable to delete 38ea04e19303 (must be forced) - image is referenced in one or more repositories

4、尝试对REPOSITORY进行删除

docker rmi jenkins:2.19.4


5、最后重复第二步再执行命令对image进行删除

docker rmi 38ea04e19303

你可能感兴趣的:(运维)