标签归档:docker

docker镜像管理命令学习

查看当前镜像

[root@ztydl ~]# docker images
REPOSITORY                              TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
centos-wget                             latest              9e694366ecc0        29 minutes ago      312.9 MB
centos                                  latest              1c1b67b33c28        3 weeks ago         196.6 MB
daocloud.io/centos                      7                   1c1b67b33c28        3 weeks ago         196.6 MB
zty                                     latest              32e90b4dd628        3 weeks ago         108.3 MB
daocloud.io/daocloud/daocloud-toolset   latest              2a2ecdfa41dc        6 months ago        147.1 MB

根据镜像ID删除镜像(-f force 强行删除)

[root@ztydl ~]# docker rmi 32e90b4dd628
Error response from daemon: Conflict, cannot delete image 32e90b4dd628 because it is tagged in multiple repositories, use -f to force
Error: failed to remove images: [32e90b4dd628]

继续阅读