github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/man/docker-images.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2014
     4  # NAME
     5  docker-images - List images
     6  
     7  # SYNOPSIS
     8  **docker images**
     9  [**--help**]
    10  [**-a**|**--all**]
    11  [**--digests**]
    12  [**-f**|**--filter**[=*[]*]]
    13  [**--format**=*"TEMPLATE"*]
    14  [**--no-trunc**]
    15  [**-q**|**--quiet**]
    16  [REPOSITORY[:TAG]]
    17  
    18  # DESCRIPTION
    19  This command lists the images stored in the local Docker repository.
    20  
    21  By default, intermediate images, used during builds, are not listed. Some of the
    22  output, e.g., image ID, is truncated, for space reasons. However the truncated
    23  image ID, and often the first few characters, are enough to be used in other
    24  Docker commands that use the image ID. The output includes repository, tag, image
    25  ID, date created and the virtual size.
    26  
    27  The title REPOSITORY for the first title may seem confusing. It is essentially
    28  the image name. However, because you can tag a specific image, and multiple tags
    29  (image instances) can be associated with a single name, the name is really a
    30  repository for all tagged images of the same name. For example consider an image
    31  called fedora. It may be tagged with 18, 19, or 20, etc. to manage different
    32  versions.
    33  
    34  # OPTIONS
    35  **-a**, **--all**=*true*|*false*
    36     Show all images (by default filter out the intermediate image layers). The default is *false*.
    37  
    38  **--digests**=*true*|*false*
    39     Show image digests. The default is *false*.
    40  
    41  **-f**, **--filter**=[]
    42     Filters the output based on these conditions:
    43     - dangling=(true|false) - find unused images
    44     - label=<key> or label=<key>=<value>
    45     - before=(<image-name>[:tag]|<image-id>|<image@digest>)
    46     - since=(<image-name>[:tag]|<image-id>|<image@digest>)
    47  
    48  **--format**="*TEMPLATE*"
    49     Pretty-print images using a Go template.
    50     Valid placeholders:
    51        .ID - Image ID
    52        .Repository - Image repository
    53        .Tag - Image tag
    54        .Digest - Image digest
    55        .CreatedSince - Elapsed time since the image was created
    56        .CreatedAt - Time when the image was created
    57        .Size - Image disk size
    58  
    59  **--help**
    60    Print usage statement
    61  
    62  **--no-trunc**=*true*|*false*
    63     Don't truncate output. The default is *false*.
    64  
    65  **-q**, **--quiet**=*true*|*false*
    66     Only show numeric IDs. The default is *false*.
    67  
    68  # EXAMPLES
    69  
    70  ## Listing the images
    71  
    72  To list the images in a local repository (not the registry) run:
    73  
    74      docker images
    75  
    76  The list will contain the image repository name, a tag for the image, and an
    77  image ID, when it was created and its virtual size. Columns: REPOSITORY, TAG,
    78  IMAGE ID, CREATED, and SIZE.
    79  
    80  The `docker images` command takes an optional `[REPOSITORY[:TAG]]` argument
    81  that restricts the list to images that match the argument. If you specify
    82  `REPOSITORY`but no `TAG`, the `docker images` command lists all images in the
    83  given repository.
    84  
    85      docker images java
    86  
    87  The `[REPOSITORY[:TAG]]` value must be an "exact match". This means that, for example,
    88  `docker images jav` does not match the image `java`.
    89  
    90  If both `REPOSITORY` and `TAG` are provided, only images matching that
    91  repository and tag are listed.  To find all local images in the "java"
    92  repository with tag "8" you can use:
    93  
    94      docker images java:8
    95  
    96  To get a verbose list of images which contains all the intermediate images
    97  used in builds use **-a**:
    98  
    99      docker images -a
   100  
   101  Previously, the docker images command supported the --tree and --dot arguments,
   102  which displayed different visualizations of the image data. Docker core removed
   103  this functionality in the 1.7 version. If you liked this functionality, you can
   104  still find it in the third-party dockviz tool: https://github.com/justone/dockviz.
   105  
   106  ## Listing only the shortened image IDs
   107  
   108  Listing just the shortened image IDs. This can be useful for some automated
   109  tools.
   110  
   111      docker images -q
   112  
   113  # HISTORY
   114  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
   115  based on docker.com source material and internal work.
   116  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>