2014-04-16 18:07:55 +00:00
|
|
|
% DOCKER(1) Docker User Manuals
|
2014-07-01 02:58:04 +00:00
|
|
|
% Docker Community
|
|
|
|
% JUNE 2014
|
2014-04-16 18:07:55 +00:00
|
|
|
# NAME
|
2014-07-01 02:58:04 +00:00
|
|
|
docker-rmi - Remove one or more images
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2014-07-01 02:58:04 +00:00
|
|
|
**docker rmi**
|
2015-12-23 14:37:06 +00:00
|
|
|
[**-f**|**--force**]
|
2014-10-15 21:14:12 +00:00
|
|
|
[**--help**]
|
2015-12-23 14:37:06 +00:00
|
|
|
[**--no-prune**]
|
2014-07-01 02:58:04 +00:00
|
|
|
IMAGE [IMAGE...]
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2015-04-01 19:20:59 +00:00
|
|
|
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 images** command.
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
**-f**, **--force**=*true*|*false*
|
2014-07-01 02:58:04 +00:00
|
|
|
Force removal of the image. The default is *false*.
|
|
|
|
|
2014-10-15 21:14:12 +00:00
|
|
|
**--help**
|
|
|
|
Print usage statement
|
|
|
|
|
2014-07-01 02:58:04 +00:00
|
|
|
**--no-prune**=*true*|*false*
|
|
|
|
Do not delete untagged parents. The default is *false*.
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
## Removing an image
|
|
|
|
|
2015-07-13 12:56:58 +00:00
|
|
|
Here is an example of removing an image:
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
docker rmi fedora/httpd
|
|
|
|
|
|
|
|
# HISTORY
|
2014-04-17 15:36:58 +00:00
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
2014-07-02 00:30:25 +00:00
|
|
|
based on docker.com source material and internal work.
|
2014-07-03 01:07:42 +00:00
|
|
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
2015-04-01 19:20:59 +00:00
|
|
|
April 2015, updated by Mary Anthony for v2 <mary@docker.com>
|