Force-remove a local image.
Section: Images
Force remove an image
bash
bash
docker rmi -f nginx:latestExplanation
Useful when tags or stopped containers keep the image referenced.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Images