Docker

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

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