docker在删除两个相同IMAGE ID镜像(E.g:docker rmi 605c77e624dd)时,会有如下报错:
Error response from daemon: conflict: unable to delete 605c77e624dd (must be forced) - image is referenced in multiple repositories
[root@centos79 ~]# docker images | grep nginx
nginx-test 1.0 605c77e624dd 23 months ago 141MB
nginx latest 605c77e624dd 23 months ago 141MB
[root@centos79 ~]# docker rmi 605c77e624dd
Error response from daemon: conflict: unable to delete 605c77e624dd (must be forced) - image is referenced in multiple repositories
[root@centos79 ~]#
使用repository加tag的方式进行image的删除。
命令:
docker rmi nginx-test:1.0
[root@centos79 ~]# docker images | grep nginx
nginx-test 1.0 605c77e624dd 23 months ago 141MB
nginx la