docker-container-remove
remove one or more containers
TLDR
Remove a container
$ docker container remove [container]
SYNOPSIS
docker container remove [options] container
DESCRIPTION
docker container remove is an alias for docker container rm and removes one or more containers from the Docker host. Containers must be stopped before removal unless the force option is used. This command cleans up container filesystem layers and metadata but does not affect the underlying image.Removing containers is important for maintaining system cleanliness and freeing disk space, as stopped containers continue to consume storage until explicitly deleted.
INSTALL
sudo apt install docker-cli
sudo dnf install docker-cli
sudo pacman -S docker
sudo apk add docker-cli
sudo zypper install docker
brew install docker
nix profile install nixpkgs#docker
SEE ALSO
docker-container-rm(1), docker-rm(1)
