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