1podman-history(1)() podman-history(1)()
2
3
4
6 podman-history - Show the history of an image
7
8
10 podman history [options] image[:tag|@digest]
11
12
13 podman image history [options] image[:tag|@digest]
14
15
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
24 information using the Go template provided by the user.
25
26
27 Valid placeholders for the Go template are listed below:
28
29
30 ┌────────────┬────────────────────────────┐
31 │Placeholder │ Description │
32 ├────────────┼────────────────────────────┤
33 │.ID │ Image ID │
34 ├────────────┼────────────────────────────┤
35 │.Created │ if --human, time elapsed │
36 │ │ since creation, otherwise │
37 │ │ time stamp of creation │
38 ├────────────┼────────────────────────────┤
39 │.CreatedBy │ Command used to create the │
40 │ │ layer │
41 ├────────────┼────────────────────────────┤
42 │.Size │ Size of layer on disk │
43 ├────────────┼────────────────────────────┤
44 │.Comment │ Comment for the layer │
45 ├────────────┼────────────────────────────┤
46 │ │ │
47 └────────────┴────────────────────────────┘
48
50 --human, -H=true|false
51 Display sizes and dates in human readable format (default true).
52
53
54 --no-trunc=true|false
55 Do not truncate the output (default false).
56
57
58 --notruncate
59 Do not truncate the output
60
61
62 --quiet, -q=true|false
63 Print the numeric IDs only (default false).
64
65
66 --format=format
67 Alter the output for a format like 'json' or a Go template.
68
69
70 --help, -h
71 Print usage statement
72
73
75 $ podman history debian
76 ID CREATED CREATED BY SIZE COMMENT
77 b676ca55e4f2c 9 weeks ago /bin/sh -c #(nop) CMD ["bash"] 0 B
78 <missing> 9 weeks ago /bin/sh -c #(nop) ADD file:ebba725fb97cea4... 45.14 MB
79
80
81
82 $ podman history --no-trunc=true --human=false debian
83 ID CREATED CREATED BY SIZE COMMENT
84 b676ca55e4f2c 2017-07-24T16:52:55Z /bin/sh -c #(nop) CMD ["bash"] 0
85 <missing> 2017-07-24T16:52:54Z /bin/sh -c #(nop) ADD file:ebba725fb97cea4... 45142935
86
87
88
89 $ podman history --format "{{.ID}} {{.Created}}" debian
90 b676ca55e4f2c 9 weeks ago
91 <missing> 9 weeks ago
92
93
94
95 $ podman history --format json debian
96 [
97 {
98 "id": "b676ca55e4f2c0ce53d0636438c5372d3efeb5ae99b676fa5a5d1581bad46060",
99 "created": "2017-07-24T16:52:55.195062314Z",
100 "createdBy": "/bin/sh -c #(nop) CMD [\"bash\"]",
101 "size": 0,
102 "comment": ""
103 },
104 {
105 "id": "b676ca55e4f2c0ce53d0636438c5372d3efeb5ae99b676fa5a5d1581bad46060",
106 "created": "2017-07-24T16:52:54.898893387Z",
107 "createdBy": "/bin/sh -c #(nop) ADD file:ebba725fb97cea45d0b1b35ccc8144e766fcfc9a78530465c23b0c4674b14042 in / ",
108 "size": 45142935,
109 "comment": ""
110 }
111 ]
112
113
114
116 podman(1)
117
118
120 July 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com
121 ⟨mailto:umohnani@redhat.com⟩
122
123
124
125 podman-history(1)()