docker的image两个id相同名字不同,如何删除其中之一
问题如下:
[root@echohye ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
127.0.0.1:5000/echohye 1.1 409b137b25d9 50 minutes ago 381MB
192.168.1.6:5000/echohye 1.1 409b137b25d9 50 minutes ago 381MB
mycentos 1.1 409b137b25d9 50 minutes ago 381MB
localhost:5000/echohye 1.1 409b137b25d9 50 minutes ago 381MB
删除的时候,只需要加上镜像名:版本号就行了
[root@echohye ~]# docker rmi 127.0.0.1:5000/echohye:1.1
Untagged: 127.0.0.1:5000/echohye:1.1
[root@echohye ~]# docker rmi localhost:5000/echohye:1.1
Untagged: localhost:5000/echohye:1.1
[root@echohye ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
192.168.1.6:5000/echohye 1.1 409b137b25d9 54 minutes ago 381MB
mycentos 1.1 409b137b25d9 54 minutes ago 381MB