← All notes

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

Sources

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

Permanent ID: iil:note:fb7fvz43

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.},
}

Markdown

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.

All artifact files (JSON index)

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.