mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
580 B
Plaintext
26 lines
580 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# docker container rm
|
|
|
|
> Remove containers.
|
|
> More information: <https://docs.docker.com/reference/cli/docker/container/rm/>.
|
|
|
|
- Remove containers:
|
|
|
|
`docker {{[rm|container rm]}} {{container1 container2 ...}}`
|
|
|
|
- Force remove a container:
|
|
|
|
`docker {{[rm|container rm]}} {{[-f|--force]}} {{container1 container2 ...}}`
|
|
|
|
- Remove a container and its volumes:
|
|
|
|
`docker {{[rm|container rm]}} {{[-v|--volumes]}} {{container}}`
|
|
|
|
- Display help:
|
|
|
|
`docker {{[rm|container rm]}} {{[-h|--help]}}`
|