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**
|
|
|
|
[**-f**|**--force**[=*false*]]
|
|
|
|
[**--no-prune**[=*false*]]
|
|
|
|
IMAGE [IMAGE...]
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
This will remove 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
|
2014-04-17 11:36:58 -04:00
|
|
|
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*.
|
|
|
|
|
|
|
|
**--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
|
|
|
|
|
|
|
|
Here is an example of removing and image:
|
|
|
|
|
|
|
|
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>
|