docker image rm: untag and remove images on the host
Answer: This command un-tags and deletes one or more images stored on the host, not in a registry.
Tags and registries
If the image has several tags, naming one tag removes only that tag.
If that tag is the only one for the image, the image is removed.
This does not remove images from a registry.
Aliases include docker image remove and docker rmi.
Force and platforms
An image in use by a running container cannot be removed unless you force it.
docker image ls shows the images on a host.
Digest references go away automatically when you remove an image by tag.
By default every present platform variant is removed.
See also
Claims
- id: C1 claim: The command removes and un-tags images on the host node. source: S1 evidence: "one or more images from the host node"
- id: C2 claim: Images in a registry are not removed. source: S1 evidence: "does not remove images from a registry"
- id: C3 claim: A running container's image cannot be removed unless you force it. source: S2 evidence: "image of a running container unless you use the"
- id: C4 claim: Removing by tag also drops digest references automatically. source: S2 evidence: "removed automatically when an image is removed by tag"
Sources
- [S1] docker image rm. Docker Docs. https://docs.docker.com/reference/cli/docker/image/rm/ . License: Apache-2.0. Accessed 2026-11-23.
- [S2] docker rmi CLI reference. Docker CLI. https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/image_rm.md . License: Apache-2.0. Accessed 2026-11-23.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker Docs, docker image rm; Docker CLI, docker rmi CLI reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker Docs, docker image rm; Docker CLI, docker rmi CLI reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "docker image rm: untag and remove images on the host." iinventedlight Library, iil:note:fb7fvz43, version of 2026-11-23. https://iinventedlight.com/library/notes/docker-image-rm/. License: CC-BY-4.0.
@misc{iil_note_fb7fvz43,
author = {{iinventedlight}},
title = {{docker image rm: untag and remove images on the host}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-23},
url = {https://iinventedlight.com/library/notes/docker-image-rm/},
note = {Permanent ID iil:note:fb7fvz43. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-image-rm.schema.json (schema; CC-BY-4.0)
- docker-image-rm.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-image-rm.md.