Skip to content

Instantly share code, notes, and snippets.

@allbarbos
Last active August 3, 2020 17:07
Show Gist options
  • Save allbarbos/8ae7aeb4c02ad4439a8a08024dd2767a to your computer and use it in GitHub Desktop.
Save allbarbos/8ae7aeb4c02ad4439a8a08024dd2767a to your computer and use it in GitHub Desktop.
# parar todos os containers
docker stop $(docker ps -a -q)
# remover todos os containers
docker rm -f $(docker ps -a -q)
# remover todas as imagens
docker rmi -f $(docker images -a -q)
# remover todos os containers e imagens
docker rm -f $(docker ps -a -q) && docker rmi -f $(docker images -a -q)
# limpa toda babilónia
docker image prune --all --force && docker volume prune --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment