Skip to content

Instantly share code, notes, and snippets.

@StephanWagner
Created September 12, 2019 09:02
Show Gist options
  • Save StephanWagner/18f06bc13858c6ea818f4036e12c7e8c to your computer and use it in GitHub Desktop.
Save StephanWagner/18f06bc13858c6ea818f4036e12c7e8c to your computer and use it in GitHub Desktop.
Prune docker system and remove all containers, images, volumes with one command.
docker system prune
docker container stop $(docker container ls -aq)
docker container rm $(docker container ls -aq)
docker rmi $(docker images -aq)
docker volume prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment