docker-image-rm man page

docker-image-rm ā€” Remove one or more images

Synopsis

docker image rm [Options] IMAGE [IMAGE...]

Description

Removes one or more images from the host node. This does not remove images from a registry. You cannot remove an image of a running container unless you use the -f option. To see all images on a host use the docker image ls command.

Examples

Removing an image

Here is an example of removing an image:

docker image rm fedora/httpd

Options

-f, --force[=false]

Force removal of the image

-h, --help[=false]

help for rm

--no-prune[=false]

Do not delete untagged parents

See Also

docker-image(1)

Referenced By

docker-image(1).

Aug 2018 Docker Community