Docker

docker rmi

CautionRemove images

docker rmi <image>

Deletes images to reclaim disk. In-use images need their containers removed first.

Examples

  • docker rmi $(docker images -f dangling=true -q)Remove dangling images

Syntax

docker rmi [-f] <image>

Before you run it

Deleted images must be re-pulled.

Used when you see

Docker is eating the disk
3
Remove dangling and unused images
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store