docker rm
DestructiveRemove container/image
docker rm <container>
Removes containers (rm) or images (rmi); -f for running ones.
Examples
docker rm -f webForce-remove a running container
Syntax
docker rm [-f] <container> | docker rmi <image>
Before you run it
Deletion is irreversible; -f removes running ones.
Related commands
- docker psList containers
- docker imagesList/remove images
Check it once more before you run it
Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.
Get it free on the App Store