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