Summary
Use the docker container prune command to remove all stopped containers, or refer to the docker system prune command to remove unused containers in addition to other Docker resources, such as (unused) images and networks.
1
To free disk space and keep a system organized, use the docker system prune command to clean up any resources that are dangling, while the docker image prune and docker rmi commands can be used to remove images, containers, and volumes according to a pattern.
2
According to
See more results on Neeva
Summaries from the best pages on the web
Summary
Use the docker container prune command to remove all stopped containers, or refer to the docker system prune command to remove unused containers in addition to other Docker resources, such as (unused) images and networks.
docker rm
docker.com
Summary
Docker makes it easy to wrap applications and services in containers, but it can also consume an excessive number of unused images, containers, and data volumes. This guide provides a quick reference to commands that are useful for freeing disk space and keeping a system organized by removing unused Docker images, containers, and volumes. The docker system prune command is a single command that will clean up any resources that are dangling, while the docker image prune and docker rmi commands can be used to remove images according to a pattern, containers according to a pattern, and containers according to a pattern.
How To Remove Docker Images, Containers, and Volumes | DigitalOcean
digitalocean.com
to as “garbage collection”), such as images, containers, volumes, and networks: these objects are generally not removed unless you explicitly ask Docker to ...
Prune unused Docker objects
docker.com