3

My empty space before running docker system prune -a was 900 MB and running it gives me 65 GB free space although the command report that it cleaned only 14.5 GB

Is the report is just wrong on am I missing something here?

The docs is not telling something new and it would be normal if it clears only 14.5 GB and this only gives me one answer that I'm doing it in a wrong way. Any thoughts here?

  • I've added an answer here that provides a detailed explanation of what `docker system prune -a` is doing - https://stackoverflow.com/a/73536542/1549918 – Chris Halcrow Aug 30 '22 at 02:35

1 Answers1

4

This will remove following content form your host machine where docker is running

    - all stopped containers
    - all networks not used by at least one container
    - all images without at least one container associated to them
    - all build cache
Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
Dashrath Mundkar
  • 7,956
  • 2
  • 28
  • 42