Created
January 21, 2018 07:49
-
-
Save ryanlid/f6c5143441db0d4e5fc3532b5b59a152 to your computer and use it in GitHub Desktop.
macOS中删除docker所有的images,containers,及其其他数据,以恢复磁盘空间。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) | |
docker volume rm $(docker volume ls |awk '{print $2}') | |
rm -rf ~/Library/Containers/com.docker.docker/Data/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment