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

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.

主站蜘蛛池模板: 和政县| 卢氏县| 镇远县| 襄樊市| 廉江市| 宜兰县| 舟曲县| 耒阳市| 桦川县| 抚松县| 财经| 浏阳市| 江山市| 黄石市| 瓦房店市| 台中县| 唐山市| 宁都县| 马关县| 香港| 色达县| 弥勒县| 右玉县| 德安县| 太康县| 江北区| 万州区| 政和县| 许昌县| 林甸县| 曲周县| 页游| 镇平县| 兰西县| 万山特区| 永福县| 麻栗坡县| 宾川县| 信宜市| 白山市| 古丈县|