Docker cleanup, build and force to rebuild images, containers, volumes and networks

Kanan Rahimov
2 min readApr 5, 2018

All we know that after few projects and some tests/plays with Docker it downloads and keeps stored all related staffs such as volumes, networks, images. At some point you need to cleanup you local machine and free space. For this purpose you can use following command:

docker system prune -a

It will ask you to confirm removing of containers, volumes, networks and images:

--

--