github.com/olljanat/moby@v1.13.1/docs/reference/commandline/history.md (about)

     1  ---
     2  title: "history"
     3  description: "The history command description and usage"
     4  keywords: "docker, image, history"
     5  ---
     6  
     7  <!-- This file is maintained within the docker/docker Github
     8       repository at https://github.com/docker/docker/. Make all
     9       pull requests against that repo. If you see this file in
    10       another repository, consider it read-only there, as it will
    11       periodically be overwritten by the definitive file. Pull
    12       requests which include edits to this file in other repositories
    13       will be rejected.
    14  -->
    15  
    16  # history
    17  
    18  ```markdown
    19  Usage:  docker history [OPTIONS] IMAGE
    20  
    21  Show the history of an image
    22  
    23  Options:
    24        --help       Print usage
    25    -H, --human      Print sizes and dates in human readable format (default true)
    26        --no-trunc   Don't truncate output
    27    -q, --quiet      Only show numeric IDs
    28  ```
    29  
    30  To see how the `docker:latest` image was built:
    31  
    32      $ docker history docker
    33      IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
    34      3e23a5875458        8 days ago          /bin/sh -c #(nop) ENV LC_ALL=C.UTF-8            0 B
    35      8578938dd170        8 days ago          /bin/sh -c dpkg-reconfigure locales &&    loc   1.245 MB
    36      be51b77efb42        8 days ago          /bin/sh -c apt-get update && apt-get install    338.3 MB
    37      4b137612be55        6 weeks ago         /bin/sh -c #(nop) ADD jessie.tar.xz in /        121 MB
    38      750d58736b4b        6 weeks ago         /bin/sh -c #(nop) MAINTAINER Tianon Gravi <ad   0 B
    39      511136ea3c5a        9 months ago                                                        0 B                 Imported from -
    40  
    41  To see how the `docker:apache` image was added to a container's base image:
    42  
    43      $ docker history docker:scm
    44      IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
    45      2ac9d1098bf1        3 months ago        /bin/bash                                       241.4 MB            Added Apache to Fedora base image
    46      88b42ffd1f7c        5 months ago        /bin/sh -c #(nop) ADD file:1fd8d7f9f6557cafc7   373.7 MB
    47      c69cab00d6ef        5 months ago        /bin/sh -c #(nop) MAINTAINER Lokesh Mandvekar   0 B
    48      511136ea3c5a        19 months ago                                                       0 B                 Imported from -