Created
October 9, 2017 10:15
-
-
Save jeffijoe/a5808d2c2a8d6cc508dd39b3240c984a to your computer and use it in GitHub Desktop.
Clearing space for Docker on macOS - the Nuclear Option
This file contains hidden or 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
# This script will completely remove the Docker virtual disk (I guess?). Relaunch Docker for Mac to rebuild it. | |
# Why do you need this? If you're building Node apps in Docker, eventually you might get the ´no space left on device` | |
# error. You can use ` docker rm $(docker ps -q -f 'status=exited'); docker rmi $(docker images -q -f "dangling=true")` | |
# but that only works a few times. The command below is a complete reset, and will nuke your containers and images. | |
rm -rf ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment