Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does `docker system prune -a` actually do?

Tags:

docker

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?

like image 222
Mohamed Abu Galala Avatar asked Nov 17 '25 14:11

Mohamed Abu Galala


1 Answers

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
like image 88
Dashrath Mundkar Avatar answered Nov 19 '25 10:11

Dashrath Mundkar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!