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

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.

主站蜘蛛池模板: 张家港市| 焉耆| 安乡县| 南皮县| 海淀区| 屯门区| 黔南| 平塘县| 通山县| 扎赉特旗| 普格县| 宣化县| 阳新县| 突泉县| 台江县| 根河市| 文昌市| 鸡西市| 清原| 吉水县| 仁布县| 大同市| 新郑市| 琼结县| 岫岩| 遵化市| 溧水县| 如皋市| 大连市| 南陵县| 聊城市| 资兴市| 赤水市| 龙南县| 巴南区| 化州市| 铅山县| 赤峰市| 武功县| 镇平县| 望江县|