github.com/olljanat/moby@v1.13.1/man/docker-history.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2014
     4  # NAME
     5  docker-history - Show the history of an image
     6  
     7  # SYNOPSIS
     8  **docker history**
     9  [**--help**]
    10  [**-H**|**--human**[=*true*]]
    11  [**--no-trunc**]
    12  [**-q**|**--quiet**]
    13  IMAGE
    14  
    15  # DESCRIPTION
    16  
    17  Show the history of when and how an image was created.
    18  
    19  # OPTIONS
    20  **--help**
    21    Print usage statement
    22  
    23  **-H**, **--human**=*true*|*false*
    24      Print sizes and dates in human readable format. The default is *true*.
    25  
    26  **--no-trunc**=*true*|*false*
    27     Don't truncate output. The default is *false*.
    28  
    29  **-q**, **--quiet**=*true*|*false*
    30     Only show numeric IDs. The default is *false*.
    31  
    32  # EXAMPLES
    33      $ docker history fedora
    34      IMAGE          CREATED          CREATED BY                                      SIZE                COMMENT
    35      105182bb5e8b   5 days ago       /bin/sh -c #(nop) ADD file:71356d2ad59aa3119d   372.7 MB
    36      73bd853d2ea5   13 days ago      /bin/sh -c #(nop) MAINTAINER Lokesh Mandvekar   0 B
    37      511136ea3c5a   10 months ago                                                    0 B                 Imported from -
    38  
    39  ## Display comments in the image history
    40  The `docker commit` command has a **-m** flag for adding comments to the image. These comments will be displayed in the image history.
    41  
    42      $ sudo docker history docker:scm
    43      IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
    44      2ac9d1098bf1        3 months ago        /bin/bash                                       241.4 MB            Added Apache to Fedora base image
    45      88b42ffd1f7c        5 months ago        /bin/sh -c #(nop) ADD file:1fd8d7f9f6557cafc7   373.7 MB            
    46      c69cab00d6ef        5 months ago        /bin/sh -c #(nop) MAINTAINER Lokesh Mandvekar   0 B                 
    47      511136ea3c5a        19 months ago                                                       0 B                 Imported from -
    48  
    49  # HISTORY
    50  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
    51  based on docker.com source material and internal work.
    52  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>