Skip to content

Instantly share code, notes, and snippets.

@isratmir
Created June 13, 2020 19:27
Show Gist options
  • Save isratmir/7db27d660ca49d7945549d33c77f0b1e to your computer and use it in GitHub Desktop.
Save isratmir/7db27d660ca49d7945549d33c77f0b1e to your computer and use it in GitHub Desktop.
To delete all containers including its volumes use:
docker rm -vf $(docker ps -a -q)
To delete all the images:
docker rmi -f $(docker images -a -q)
docker system prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment