Skip to content

Instantly share code, notes, and snippets.

@fiedl
Created September 5, 2017 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiedl/21fbfe85c59ebbe3e692636ed5c28f53 to your computer and use it in GitHub Desktop.
Save fiedl/21fbfe85c59ebbe3e692636ed5c28f53 to your computer and use it in GitHub Desktop.

If you can remove all images/containers then:

  1. Stop Docker.

  2. docker system prune. https://stackoverflow.com/a/32723127/2066546

  3. Remove everything:

     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/*
    

docker/for-mac#371 (comment)

  1. Also remove the docker virtual box machine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment