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