Docker rmi: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 18: Line 18:
=Delete Dangling Images=
=Delete Dangling Images=


docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)


Also see [[docker images]].
Also see [[docker images]].

Revision as of 00:48, 31 January 2018

Internal

Overview

Remove one or more images from the local image repository.

docker rmi <image-id>

Delete All Images from Local Registry

Dangerous, do it only if you know what you're doing:

docker rmi --force $(docker images --format "{{.ID}}")

Delete Dangling Images

docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

Also see docker images.