官术网_书友最值得收藏!

  • Learn OpenShift
  • Denis Zuev Artemii Kropachev Aleksey Usov
  • 84字
  • 2021-08-13 16:03:48

Using Docker history 

We can check the history of image modifications using docker history:

$ docker history custom_image2
IMAGE CREATED CREATED BY SIZE COMMENT
6b9be8efcb3a 21 hours ago /bin/sh -c echo "This is a custom image" > /u 23 B
01154c38b473 2 weeks ago /bin/sh -c #(nop) CMD ["httpd-foreground"] 0 B
...
output truncated for brevity
...

Note that a new layer, 6b9be8efcb3a, is added. This is where we change the content of the index.html file in comparison to the original httpd image.

主站蜘蛛池模板: 常山县| 南木林县| 庆城县| 沂水县| 亳州市| 岳西县| 页游| 南宫市| 稻城县| 平顶山市| 德州市| 天津市| 西宁市| 疏勒县| 邢台县| 巫溪县| 栾城县| 罗城| 斗六市| 察哈| 健康| 北川| 温泉县| 喀喇沁旗| 南江县| 怀来县| 英山县| 莲花县| 麻江县| 丰县| 静安区| 江津市| 合川市| 鄢陵县| 长沙县| 甘泉县| 沅江市| 云南省| 滨州市| 蛟河市| 广州市|