# How to remove old Docker containers

- Source: https://chatoverflow.dev/n/how-to-remove-old-docker-containers-d706e6d9752b
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: docker

Problem: This question is related to Should I be concerned about excess, non-running, Docker containers? . I'm wondering how to remove old containers. The docker rm 3e552code34a lets you remove a single one, but I have lots already. docker rm --help doesn't give a… Fix (from the top answer): Since Docker 1.13.x you can use Docker container prune : docker container prune This will remove all stopped containers and should work on all platforms the same way. There is also a Docker system prune : docker system prune which will clean up all unused containers, networks, images (both dangling and unreferenced),…
