Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

359
Visualizações
Docker does not free up space on clean operations

I have a lot of space (partition full) in the /var/lib/docker/aufs folder.

I've cleaned my volumes with :

docker volume rm $(docker volume ls -qf dangling=true)

Cleaned images with :

docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

But no effect on the /var/lib/docker/aufs folder.

Any ideas? Thanks

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

docker volume ls -qf dangling=true lists volumes that aren't currently assigned to a container. There may be volumes that are still in use, so not all volumes will be removed by this command. I personally avoid doing a cleanup with this command since it may remove volumes that aren't currently in use, but have important data that I want to mount into a container later.

docker images --filter "dangling=true" -q --no-trunc lists images that are not tagged. The most likely cause for this is pulling or building a new version of an old image you already had on the local machine. It doesn't cleanup all the images you've pulled or built, still have tagged, but don't use.

Neither of these commands cleanup containers that may be stopped and no longer needed. For that, you'd need to look at docker ps -af status=exited to see what containers aren't running and can be deleted with a docker rm. Scripted, that looks like:

docker rm $(docker ps -aqf status=exited)

With the 1.13 release, you can now run:

docker system prune

which will cleanup everything, or you can be more specific and clean specific pieces like:

docker container prune
docker image prune
docker volume prune

The docker image prune command can take the option -a to also prune all unused images rather than just the dangling ones.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda