Docker CLI
docker image rm
Remove a local tag or image when allowed. References and containers can retain image content. Do not force removal or target shared resources. Remove only the alias created in the lab, after confirming ownership and identity.
Formal Syntax & Structure
docker syntaxdocker
docker image rm [OPTIONS] IMAGE [IMAGE...]Working Example
Example Snippetdocker
docker image rm bm03/demo:local