JAEN

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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store