github.com/brahmaroutu/docker@v1.2.1-0.20160809185609-eb28dde01f16/docs/reference/commandline/history.md (about) 1 <!--[metadata]> 2 +++ 3 title = "history" 4 description = "The history command description and usage" 5 keywords = ["docker, image, history"] 6 [menu.main] 7 parent = "smn_cli" 8 +++ 9 <![end-metadata]--> 10 11 # history 12 13 ```markdown 14 Usage: docker history [OPTIONS] IMAGE 15 16 Show the history of an image 17 18 Options: 19 --help Print usage 20 -H, --human Print sizes and dates in human readable format (default true) 21 --no-trunc Don't truncate output 22 -q, --quiet Only show numeric IDs 23 ``` 24 25 To see how the `docker:latest` image was built: 26 27 $ docker history docker 28 IMAGE CREATED CREATED BY SIZE COMMENT 29 3e23a5875458 8 days ago /bin/sh -c #(nop) ENV LC_ALL=C.UTF-8 0 B 30 8578938dd170 8 days ago /bin/sh -c dpkg-reconfigure locales && loc 1.245 MB 31 be51b77efb42 8 days ago /bin/sh -c apt-get update && apt-get install 338.3 MB 32 4b137612be55 6 weeks ago /bin/sh -c #(nop) ADD jessie.tar.xz in / 121 MB 33 750d58736b4b 6 weeks ago /bin/sh -c #(nop) MAINTAINER Tianon Gravi <ad 0 B 34 511136ea3c5a 9 months ago 0 B Imported from - 35 36 To see how the `docker:apache` image was added to a container's base image: 37 38 $ docker history docker:scm 39 IMAGE CREATED CREATED BY SIZE COMMENT 40 2ac9d1098bf1 3 months ago /bin/bash 241.4 MB Added Apache to Fedora base image 41 88b42ffd1f7c 5 months ago /bin/sh -c #(nop) ADD file:1fd8d7f9f6557cafc7 373.7 MB 42 c69cab00d6ef 5 months ago /bin/sh -c #(nop) MAINTAINER Lokesh Mandvekar 0 B 43 511136ea3c5a 19 months ago 0 B Imported from -