How to remove old Docker containers?

You can use docker container prune or docker system prune commands to remove all unused stopped docker containers. The docker container prune command removes any stopped containers and docker system prune command cleans up all unused containers, networks, images (both dangling and unreferenced), and optionally, volumes, in one command.


Leave a Reply