Skip to content

Instantly share code, notes, and snippets.

@juizmill
Last active March 6, 2019 14:26
Show Gist options
  • Select an option

  • Save juizmill/245bb668ae2f928c3a7a3d907b2eb9ff to your computer and use it in GitHub Desktop.

Select an option

Save juizmill/245bb668ae2f928c3a7a3d907b2eb9ff to your computer and use it in GitHub Desktop.
Comandos docker para fazer limpeza..

Limpa containers:

docker rm -f $(docker ps -a -q)

limpa images:

docker rmi -f $(docker images -a -q)

limpa volumes:

docker volume rm $(docker volume ls -q)

limpa networks:

docker network rm $(docker network ls | tail -n+2 | awk '{if($2 !~ /bridge|none|host/){ print $1 }}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment