1
0
mirror of https://github.com/docker/cli.git synced 2025-11-27 06:01:33 +03:00
Files
cli/docs/reference/commandline/rmi.md
Sebastiaan van Stijn bb0ca9f9ef image rm: add --platform option
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-05-27 10:58:11 +02:00

21 lines
899 B
Markdown

# docker rmi
<!---MARKER_GEN_START-->
Remove one or more images
### Aliases
`docker image rm`, `docker image remove`, `docker rmi`
### Options
| Name | Type | Default | Description |
|:----------------|:--------------|:--------|:-------------------------------------------------------------------------------------------------|
| `-f`, `--force` | `bool` | | Force removal of the image |
| `--no-prune` | `bool` | | Do not delete untagged parents |
| `--platform` | `stringSlice` | | Remove only the given platform variant. Formatted as `os[/arch[/variant]]` (e.g., `linux/amd64`) |
<!---MARKER_GEN_END-->