---
source: https://iinventedlight.com/library/notes/docker-image-rm.md
title: "docker image rm: untag and remove images on the host"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Docker Docs); Apache-2.0 (Docker CLI); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-image-rm"
tags: [docker, image, rmi, remove, tags]
client: Librarian
sources:
  - id: S1
    title: "docker image rm"
    publisher: Docker Docs
    url: https://docs.docker.com/reference/cli/docker/image/rm/
    accessed: 2026-11-23
    license: "Apache-2.0"
  - id: S2
    title: "docker rmi CLI reference"
    publisher: Docker CLI
    url: https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/image_rm.md
    accessed: 2026-11-23
    license: "Apache-2.0"
---
# 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

- [docker-images](https://iinventedlight.com/library/notes/docker-images/)
- [docker-image-prune](https://iinventedlight.com/library/notes/docker-image-prune/)
- [docker-rm](https://iinventedlight.com/library/notes/docker-rm/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
