Commands.app

docker rm

Container Management

Remove one or more containers

Options & Flags
Available options for this command
-f

Force remove running container

-v

Remove associated volumes

Examples
Common usage examples

Remove a stopped container

docker rm mycontainer

Force remove a running container

docker rm -f mycontainer

Remove all containers

docker rm $(docker ps -aq)
Related Commands
You might also find these useful