Skip to content

Instantly share code, notes, and snippets.

@juniormartinxo
Last active October 7, 2022 22:02
Show Gist options
  • Select an option

  • Save juniormartinxo/90dcc595b6d8543af5b7489a6f23e997 to your computer and use it in GitHub Desktop.

Select an option

Save juniormartinxo/90dcc595b6d8543af5b7489a6f23e997 to your computer and use it in GitHub Desktop.

Docker prune, rm e rmi

Apagdno todas as imagens no Docker

$ docker image rm -f $(docker image ls -q)

Apagando todos os volumes no Docker

$ docker volume prune

Apagando todos os containers no Docker

$ docker container prune

Limpeza geral no Docker

docker system prune

WARNING

This will remove:

  • all stopped containers
  • all networks not used by at least one container
  • all dangling images
  • all dangling build cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment