1podman-history(1)()                                        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
27       Valid placeholders for the Go template are listed below:
28
29
30       ┌────────────┬────────────────────────────┐
31Placeholder 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

OPTIONS

48   --human, -H=true|false
49       Display sizes and dates in human readable format (default true).
50
51
52   --no-trunc=true|false
53       Do not truncate the output (default false).
54
55
56   --notruncate
57       Do not truncate the output
58
59
60   --quiet, -q=true|false
61       Print the numeric IDs only (default false).
62
63
64   --format=format
65       Alter the output for a format like 'json' or a Go template.
66
67
68   --help, -h
69       Print usage statement
70
71

EXAMPLES

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

SEE ALSO

114       podman(1)
115
116

HISTORY

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