docker中删除images的命令是docker rmi,但有时候执行此命令并不能删除images
[yaxin@ubox ~]$docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE eg_sshd latest ed9c93747fe1 45 hours ago 329.8 MB CentOS65 latest e55a74a32125 2 days ago 360.6 MB [yaxin@ubox ~]$docker rmi ed9c93747fe1 Untagged: ed9c93747fe16627be822ad3f7feeb8b4468200e5357877d3046aa83cc44c6af [yaxin@ubox ~]$docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE <none> <none> ed9c93747fe1 45 hours ago 329.8 MB CentOS65 latest e55a74a32125 2 days ago 360.6 MB
可以看出,image并没有被删除,只是他的tag被删除了,再次执行docker rmi IMAGE_ID只会报错
[yaxin@ubox ~]$docker rmi ed9c93747f