2014-04-16 14:07:55 -04:00
|
|
|
% DOCKER(1) Docker User Manuals
|
2014-06-30 22:58:04 -04:00
|
|
|
% Docker Community
|
|
|
|
% JUNE 2014
|
2014-04-16 14:07:55 -04:00
|
|
|
# NAME
|
|
|
|
docker-history - Show the history of an image
|
|
|
|
|
|
|
|
# SYNOPSIS
|
2014-06-30 22:58:04 -04:00
|
|
|
**docker history**
|
2014-10-15 17:14:12 -04:00
|
|
|
[**--help**]
|
2014-06-30 22:58:04 -04:00
|
|
|
[**--no-trunc**[=*false*]]
|
|
|
|
[**-q**|**--quiet**[=*false*]]
|
2014-11-27 23:21:55 -05:00
|
|
|
IMAGE
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
Show the history of when and how an image was created.
|
|
|
|
|
|
|
|
# OPTIONS
|
2014-10-15 17:14:12 -04:00
|
|
|
**--help**
|
|
|
|
Print usage statement
|
|
|
|
|
2015-04-16 11:29:04 -04:00
|
|
|
**-H**. **--human**=*true*|*false*
|
|
|
|
Print sizes and dates in human readable format. The default is *true*.
|
|
|
|
|
2014-04-16 14:07:55 -04:00
|
|
|
**--no-trunc**=*true*|*false*
|
2014-06-30 22:58:04 -04:00
|
|
|
Don't truncate output. The default is *false*.
|
2014-04-16 14:07:55 -04:00
|
|
|
|
2014-06-30 22:58:04 -04:00
|
|
|
**-q**, **--quiet**=*true*|*false*
|
|
|
|
Only show numeric IDs. The default is *false*.
|
2014-04-16 14:07:55 -04:00
|
|
|
|
2014-06-30 22:58:04 -04:00
|
|
|
# EXAMPLES
|
2015-03-26 14:12:37 -04:00
|
|
|
$ docker history fedora
|
2015-01-04 01:47:01 -05:00
|
|
|
IMAGE CREATED CREATED BY SIZE COMMENT
|
2014-04-16 14:07:55 -04: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 01:47:01 -05:00
|
|
|
511136ea3c5a 10 months ago 0 B Imported from -
|
|
|
|
|
2015-04-08 19:43:25 -04:00
|
|
|
## Display comments in the image history
|
2015-03-26 00:39:50 -04: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 01:47:01 -05: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 14:07:55 -04:00
|
|
|
|
|
|
|
# HISTORY
|
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
2014-07-01 20:30:25 -04:00
|
|
|
based on docker.com source material and internal work.
|
2014-06-30 22:58:04 -04:00
|
|
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|