Skip to content

Instantly share code, notes, and snippets.

@shibli049
Created January 1, 2020 13:30
Show Gist options
  • Save shibli049/c7376a2dde5e863f567aa6f22033d799 to your computer and use it in GitHub Desktop.
Save shibli049/c7376a2dde5e863f567aa6f22033d799 to your computer and use it in GitHub Desktop.
# Remove the volumes associated with the container
docker rm -v $(docker ps -aq)
# Remove images
docker rmi $(docker images -aq)
# Remove all unused local volumes
docker volume prune
# Remove all dangling volumes
docker volume rm $(docker volume ls -qf dangling=true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment