docker 操作命令汇集
【摘要】
清除方法
sudo docker system prune -a
删除docker 的image、container、volume
参考: https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-...
清除方法
sudo docker system prune -a
- 删除docker 的image、container、volume
参考:
https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes
I have found a work-around in the meantime. It’s a little tedious, but it clears up space on my Ubuntu 16.04 VM. Essentially… performing a “double-tap” on the system. Running as root or any system sudoer:
-
docker rm $(docker ps -a -q)
-
docker rmi --force $(docker images -q)
-
docker system prune --force
-
-
# Double-tap
-
systemctl stop docker
-
rm -rf /var/lib/docker/aufs
-
apt-get autoclean
-
apt-get autoremove
-
systemctl start docker
Make sure you’re not cd’d into your /var/lib/docker/aufs directory when running these commands.
It did work for me runn
文章来源: blog.csdn.net,作者:隔壁老瓦,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/wxb880114/article/details/81592090
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)