docker-rmi - Man Page
Remove one or more images
Examples (TL;DR)
- Display help:
docker rmi - Remove one or more images given their names:
docker rmi image1 image2 ... - Force remove an image:
docker rmi [-f|--force] image - Remove an image without deleting untagged parents:
docker rmi --no-prune image
Synopsis
docker rmi [Options] IMAGE [IMAGE...]
Description
Alias for docker image rm.
Options
-f, --force[=false] Force removal of the image
--no-prune[=false] Do not delete untagged parents
--platform=[] Remove only the given platform variant. Formatted as "os[/arch[/variant]]" (e.g., "linux/amd64")
See Also
Info
Jul 2025 Docker Community Docker User Manuals