- 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.
推薦閱讀
- Mastering vRealize Operations Manager(Second Edition)
- Linux系統(tǒng)文件安全實(shí)戰(zhàn)全攻略
- Linux網(wǎng)絡(luò)操作系統(tǒng)與實(shí)訓(xùn)(第三版)
- 循序漸進(jìn)學(xué)Docker
- 精解Windows8
- Linux自動(dòng)化運(yùn)維:Shell與Ansible(微課版)
- 從實(shí)踐中學(xué)習(xí)Windows滲透測(cè)試
- iOS 10 開(kāi)發(fā)指南
- Agile IT Security Implementation Methodology
- Linux從入門(mén)到精通(視頻教學(xué)版)
- 鴻蒙HarmonyOS應(yīng)用開(kāi)發(fā)入門(mén)
- 辦公自動(dòng)化教程(Windows7+Office2010)
- SAP后勤模塊實(shí)施攻略:SAP在生產(chǎn)、采購(gòu)、銷(xiāo)售、物流中的應(yīng)用
- 從零開(kāi)始學(xué)Windows 7
- TD-SCDMA HSDPA系統(tǒng)設(shè)計(jì)與組網(wǎng)技術(shù)