DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1
"Created": "2019-11-
28T05:53:37.794817007Z",
"Container":
"e03bd238731932ca2cab6c8b7fa1346105b839ce2a8604c0c7d
34352b907a4af",
"ContainerConfig": {
"Hostname": "e03bd2387319",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"443/tcp": {},
"80/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
<Cut for brevity>

The image history command shows you the creation of
the image and all the steps that were taken to build the
image, as shown in Example 13-8. This can be very useful
in troubleshooting an image build.


Example 13-8 docker image history Command

Click here to view code image


$ docker image history myimage
IMAGE CREATED CREATED BY
SIZE COMMENT
04ae8c714993 56 minutes ago /bin/sh -c #
(nop) CMD ["nginx" "-g" "daemon... 0B
2ecd13c5af2b 57 minutes ago /bin/sh -c #
(nop) VOLUME [/usr/share/nginx/... 0B
a9a1533064b2 57 minutes ago /bin/sh -c #
(nop) EXPOSE 443 80 0B
4abf50fd4a02 57 minutes ago /bin/sh -c apt-
get install nginx -y 60.2MB
c2701f555b0f 58 minutes ago /bin/sh -c apt-
get upgrade -y 1.55MB
646cc0e9f256 58 minutes ago /bin/sh -c apt-
get update 27.6MB
Free download pdf