docker-images - docker 删除所有容器
本文介绍了docker-images - docker 删除所有容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
root@iZ28krk4xlkZ:/var/lib# docker rm `docker ps -a -q`
958e1b65cde0
f4997df56049
4c258585a82c
3e4021f0b9e6
79537a175735
95751e6b23bf
root@iZ28krk4xlkZ:/var/lib# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
swarm latest eb7c36c2df64 18 hours ago 17.15 MB
rethinkdb latest 53c589ee884f 26 hours ago 181.8 MB
alpine latest 2314ad3eeb90 2 weeks ago 4.794 MB
shipyard/docker-proxy latest 276373c72857 5 weeks ago 9.468 MB
shipyard/shipyard latest 4db14669ff0c 8 weeks ago 58.73 MB
ehazlett/curl latest b26cc0beea49 5 months ago 8.751 MB
microbox/etcd latest 96192a5fe39d 5 months ago 17.87 MB
已经全部删除了 ,为何查看镜像还有呢 ?
解决方案
你删除的是镜像运行的实例,要删除镜像用docker rmi + 镜像名或者那串字符
这篇关于docker-images - docker 删除所有容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文