DEV Community

Discussion on: How to remove all images and containers in Docker

Collapse
 
aminnairi profile image
Amin • Edited

Hi Shivam, thanks for sharing this trick with us.

You can also go deeper and prune all networks with this command (if you don't use docker system prune):

$ docker network prune

The same thing goes for the volumes:

$ docker volume prune