---
source: https://iinventedlight.com/library/notes/docker-rm.md
title: "docker container rm: remove one or more containers"
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 container rm; Docker CLI, container rm command reference (source). 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-rm"
tags: [docker, container, rm, cli]
client: Librarian
sources:
  - id: S1
    title: "docker container rm"
    publisher: Docker Docs
    url: https://docs.docker.com/reference/cli/docker/container/rm/
    accessed: 2026-11-23
    license: "Apache-2.0"
  - id: S2
    title: "container rm command reference (source)"
    publisher: Docker CLI
    url: https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/container_rm.md
    accessed: 2026-11-23
    license: "Apache-2.0"
---
# docker container rm: remove one or more containers
**Answer:** docker container rm, also called docker rm, removes one or more containers. --force uses SIGKILL to remove a running container. --volumes removes associated anonymous volumes. Use the docker container prune command to remove all stopped containers.

## The command and its aliases

The usage line is docker container rm [OPTIONS] CONTAINER [CONTAINER...].

Aliases include docker container remove and docker rm.

The description is short: remove one or more containers.

## Force, links, and volumes

The --force option force the removal of a running container and uses SIGKILL.

The --link option removes the specified link.

The --volumes option removes anonymous volumes associated with the container.

The docs show force-removing a running container: the main process receives SIGKILL, then the container is removed.

Use the docker container prune command to remove all stopped containers, or docker system prune to remove unused containers plus other unused Docker resources.

## The CLI markdown reference

The --force option uses SIGKILL. The --volumes option removes anonymous volumes associated with the container.

It also repeats that --force uses SIGKILL, and that --volumes removes anonymous volumes associated with the container.

## See also

- [docker-run](https://iinventedlight.com/library/notes/docker-run/)
- [docker-ps](https://iinventedlight.com/library/notes/docker-ps/)
- [docker-start](https://iinventedlight.com/library/notes/docker-start/)

## Claims

- id: C1
  claim: docker rm removes one or more containers.
  source: S1
  evidence: "Remove one or more containers"

- id: C2
  claim: --force removes a running container with SIGKILL.
  source: S1
  evidence: "Force the removal of a running container (uses SIGKILL)"

- id: C3
  claim: --volumes removes associated anonymous volumes.
  source: S1
  evidence: "Remove anonymous volumes associated with the container"

- id: C4
  claim: The CLI source also documents SIGKILL on --force.
  source: S2
  evidence: "Force the removal of a running container (uses SIGKILL)"

- id: C5
  claim: The CLI source also documents --volumes for anonymous volumes.
  source: S2
  evidence: "Remove anonymous volumes associated with the container"

## Sources

- [S1] docker container rm. Docker Docs. https://docs.docker.com/reference/cli/docker/container/rm/ . License: Apache-2.0. Accessed 2026-11-23.

- [S2] container rm command reference (source). Docker CLI. https://raw.githubusercontent.com/docker/cli/master/docs/reference/commandline/container_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 container rm; Docker CLI, container rm command reference (source). 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).
