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

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.

主站蜘蛛池模板: 清新县| 叙永县| 湘潭县| 洛南县| 神池县| 津市市| 长乐市| 湘潭县| 波密县| 西华县| 潞西市| 江阴市| 巫山县| 崇明县| 土默特左旗| 枝江市| 四会市| 曲松县| 濉溪县| 盐边县| 六盘水市| 古田县| 枣庄市| 尼玛县| 临夏县| 兴业县| 百色市| 虹口区| 宁远县| 巩留县| 温泉县| 扶沟县| 安吉县| 黎城县| 乌苏市| 南澳县| 离岛区| 东宁县| 锡林浩特市| 汉沽区| 炎陵县|