1podman-history(1)           General Commands Manual          podman-history(1)
2
3
4

NAME

6       podman-history - Show the history of an image
7
8

SYNOPSIS

10       podman history [options] image[:tag|@digest]
11
12
13       podman image history [options] image[:tag|@digest]
14
15

DESCRIPTION

17       podman  history displays the history of an image by printing out infor‐
18       mation about each layer used in the image. The information printed  out
19       for  each  layer include Created (time and date), Created By, Size, and
20       Comment. The output can be truncated or not using the --no-trunc  flag.
21       If  the  --human flag is set, the time of creation and size are printed
22       out in a human readable format.  The --quiet flag displays  the  ID  of
23       the  image only when set and the --format flag is used to print the in‐
24       formation using the Go template provided by the user.
25
26

OPTIONS

28   --format=format
29       Alter the output for a format like 'json' or a Go template.
30
31
32       Valid placeholders for the Go template are listed below:
33
34
35       ┌──────────────┬────────────────────────────┐
36Placeholder   Description                
37       ├──────────────┼────────────────────────────┤
38.Comment      Comment for the layer      
39       ├──────────────┼────────────────────────────┤
40.Created      │ if --human,  time  elapsed │
41       │              │ since  creation, otherwise │
42       │              │ time stamp of creation     │
43       ├──────────────┼────────────────────────────┤
44.CreatedAt    │ Time when the image  layer │
45       │              │ was created                │
46       ├──────────────┼────────────────────────────┤
47.CreatedBy    │ Command used to create the │
48       │              │ layer                      │
49       ├──────────────┼────────────────────────────┤
50.CreatedSince │ Elapsed time since the im‐ │
51       │              │ age layer was created      │
52       ├──────────────┼────────────────────────────┤
53.ID           Image ID                   
54       ├──────────────┼────────────────────────────┤
55.Size         Size of layer on disk      
56       ├──────────────┼────────────────────────────┤
57.Tags         Image tags                 
58       └──────────────┴────────────────────────────┘
59
60   --help, -h
61       Print usage statement
62
63
64   --human, -H
65       Display sizes and dates in human readable format (default true).
66
67
68   --no-trunc
69       Do not truncate the output (default false).
70
71
72   --quiet, -q
73       Print the numeric IDs only (default false).
74
75

EXAMPLES

77       $ podman history debian
78       ID              CREATED       CREATED BY                                      SIZE       COMMENT
79       b676ca55e4f2c   9 weeks ago   /bin/sh -c #(nop) CMD ["bash"]                  0 B
80       <missing>       9 weeks ago   /bin/sh -c #(nop) ADD file:ebba725fb97cea4...   45.14 MB
81
82
83       $ podman history --no-trunc=true --human=false debian
84       ID              CREATED                CREATED BY                                      SIZE       COMMENT
85       b676ca55e4f2c   2017-07-24T16:52:55Z   /bin/sh -c #(nop) CMD ["bash"]                  0
86       <missing>       2017-07-24T16:52:54Z   /bin/sh -c #(nop) ADD file:ebba725fb97cea4...   45142935
87
88
89       $ podman history --format "{{.ID}} {{.Created}}" debian
90       b676ca55e4f2c   9 weeks ago
91       <missing>       9 weeks ago
92
93
94       $ podman history --format json debian
95       [
96           {
97                     "id": "b676ca55e4f2c0ce53d0636438c5372d3efeb5ae99b676fa5a5d1581bad46060",
98                     "created": "2017-07-24T16:52:55.195062314Z",
99                     "createdBy": "/bin/sh -c #(nop)  CMD [\"bash\"]",
100                     "size": 0,
101                     "comment": ""
102           },
103           {
104                     "id": "b676ca55e4f2c0ce53d0636438c5372d3efeb5ae99b676fa5a5d1581bad46060",
105                     "created": "2017-07-24T16:52:54.898893387Z",
106                     "createdBy": "/bin/sh -c #(nop) ADD file:ebba725fb97cea45d0b1b35ccc8144e766fcfc9a78530465c23b0c4674b14042 in / ",
107                     "size": 45142935,
108                     "comment": ""
109           }
110       ]
111
112
113

SEE ALSO

115       podman(1)
116
117

HISTORY

119       July  2017,  Originally compiled by Urvashi Mohnani umohnani@redhat.com
120       ⟨mailto:umohnani@redhat.com⟩
121
122
123
124                                                             podman-history(1)
Impressum