August 2018
Intermediate to advanced
352 pages
12h 30m
English
If you recall the Creating an image from the container recipe, while committing the image we added a message, and that message is seen nowhere in the output of the docker image history command. You could resort to the docker image inspect command, as shown in the following code:
$ docker image inspect --format='{{.Comment}}' myapache2
Ubuntu with apache2 package
Well! The docker image inspect command can work with only one image at a time, but if you want to see the comments of all the image layers, then you have to go through each image or automate the operation through some scripts. By the way, the comment is optional, and so you might not find comments on all the images.
Read now
Unlock full access