DockerCommand
Remove All Stopped Containers
Type this command
docker container pruneClears out every container that is not running.
The Docker command to remove all stopped containers is docker container prune.
docker container prunedocker container pruneClears out every container that is not running.
Run docker container prune.
Run docker container prune.
Type it in the terminal or command-line interface used by Docker.
Yes. The command text is the same on both platforms when the tool is installed.