Skip to content

Instantly share code, notes, and snippets.

@jeffijoe
Created October 9, 2017 10:15
Show Gist options
  • Save jeffijoe/a5808d2c2a8d6cc508dd39b3240c984a to your computer and use it in GitHub Desktop.
Save jeffijoe/a5808d2c2a8d6cc508dd39b3240c984a to your computer and use it in GitHub Desktop.
Clearing space for Docker on macOS - the Nuclear Option
# 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