docker-rm - Man Page
Remove one or more containers
Examples (TL;DR)
- Remove containers:
docker rm container1 container2 ...
- Force remove a container:
docker rm [-f|--force] container1 container2 ...
- Remove a container and its volumes:
docker rm [-v|--volumes] container
- Display help:
docker rm [-h|--help]
Synopsis
docker rm [Options] CONTAINER [CONTAINER...]
Description
Alias for docker container rm.
Options
-f, --force[=false] Force the removal of a running container (uses SIGKILL)
-h, --help[=false] help for rm
-l, --link[=false] Remove the specified link
-v, --volumes[=false] Remove anonymous volumes associated with the container
See Also
Info
Mar 2025 Docker Community Docker User Manuals