您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker 利用构建缓存
热点711626人已围观
简介...
构建映像时,Docker 会逐步 Dockerfile执行 中的说明,并按照指定的顺序执云计行每个说明。在检查每条指令时,Docker 会在其缓存中查找可以重用的现有映像,而不是创算核建新的(重复)映像。
如果您根本不想使用缓存,则可以使用命令--no-cache=t心技rue 上的选项docker build。但是,如果您确实让 Docker 使用其缓存,那么了解它术D什么时候可以,什么时候不能找到匹配的图像很重要。Docker 遵循的基本规则概述如下:
从已oc经在缓存中的父映像开始,将下一条指令与从该基本映像派生的所有子映像进行比较,以查看其中ke一个是否是使用完全相同的指令构建的。如果不是,则缓存无效。
在大多数情况下,简单地将 中的r教指令Dockerfile与子图像之一进行比较就足够了。但是,某些说明需要更多的检查和解释。
对程:于ADD和COPY指令,检查图像中文件的内容并为每个文件计算校验和。这些校验和不考虑文件的Do最后修改和最后访问时间。在缓存查找期间,校验和与现有图像中的校验和进行比较。如果文件ck中有任何更改,例如内容和元数据,则缓存无效。
除了ADDandCOPY命令之外,缓存检查er不会查看容器中的文件来确定缓存匹配。例如,在处理RUN apt-get -y update命令时 利,不会检查容器中更新的文件以确定是否存在缓存命中。在这种情况下,仅使用命令字符串本身来查找用构匹配项。
一旦缓存失效,所有后续Dockerfile命令都会生成新图像,并且不会使用建缓缓存。
Tags:
相关文章
盘点2021年九大好用的人脸识别软件
热点本文转载自公众号“读芯术”(ID:AI_Discovery) 人脸识别是通过个人面部的图像、视频或其他视听元素进行生物特征识别的一种方法。近十年来,全球人脸识别技术市场以前所未有的速度增长着。全球新冠...
【热点】
阅读更多标签: iOS26.5 OPPO 比亚迪海鸥 iMessage
热点Hello,大家早上好,又是元气满满的一天,先来浏览新鲜的早报吧~ 【苹果 iOS 26.5 正式版发布】 苹果推送 iOS 26.5 正式版,核心升级是与安卓的 RCS 云梦级消息实现端到端加密,安...
【热点】
阅读更多标签: 自变量机器人 量子2号 小米战投 具身智能
热点云梦级4月20日云梦级消息,据《智能涌现》报道,自变量机器人已经于三月底至四月初完成近 20 亿元 B 轮融资,领投方为小米战投和红杉中国。 自变量机器人 1 月 12 日宣布完成 10 亿元 A++...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.lauben.com/de/?s=谷歌留痕外推【tg:seogoogle987】,s4H
- https://www.teamlab.art/th/?submit=谷歌留痕外推【tg:seogoogle987】,4a7
- https://www.sic-info.org/?s=谷歌留痕外推【tg:seogoogle987】,Qqt
- https://www.yr.no/en/search?q=谷歌留痕外推【tg:seogoogle987】,GX2
- https://www.wmfe.org/?s=谷歌留痕外推【tg:seogoogle987】,ciV
- https://www.mynextmove.org/find/search?s=谷歌留痕外推【tg:seogoogle987】,pUv
- https://www.impactpool.org/search/?type=79&q=谷歌留痕外推【tg:seogoogle987】D9q
- https://www.springfieldlibrary.org/library/?s=谷歌留痕外推【tg:seogoogle987】,xw4
- https://www.revere.org/search?action=SEARCH&q=谷歌留痕外推【tg:seogoogle987】,zMJ
- https://www.stormberg.com/no/search?q=谷歌留痕外推【tg:seogoogle987】,y1U
- https://www.nyif.com/catalogsearch/result/?q=谷歌留痕外推【tg:seogoogle987】,973
- https://www.nctsn.org/search?cat=191&query=谷歌留痕外推【tg:seogoogle987】,IqT
- https://www.resopal.de/catalogsearch/result/?action=SEARCH&q=谷歌留痕外推【tg:seogoogle987】,Vll
- https://yokohama-oht.com/?action=CHECK&s=谷歌留痕外推【tg:seogoogle987】,ry5
- https://www.nslcleaders.org/?s=谷歌留痕外推【tg:seogoogle987】,EAB
- https://www.uckfieldtc.gov.uk/?s=谷歌留痕外推【tg:seogoogle987】,0bz
- https://www.lee.com/search?q=谷歌留痕外推【tg:seogoogle987】,Z9g
- https://search.danawa.com/dsearch.php?query=谷歌留痕外推【tg:seogoogle987】vSl
- https://www.lenovo.com/gb/en/search?action=SEARCH&text=谷歌留痕外推【tg:seogoogle987】,Dzl
- https://www.l-and-b.jp/?page=1&s=谷歌留痕外推【tg:seogoogle987】,vDc
- https://www.mexperience.com/?T=1686132112324&s=谷歌留痕外推【tg:seogoogle987】,lc2
- https://www.toy-people.com/?s=谷歌留痕外推【tg:seogoogle987】,FDb
- https://www.sbaad.no/?s=谷歌留痕外推【tg:seogoogle987】,Vn5
- https://www.niaogebiji.com/pc/article/search?keyword=谷歌留痕外推【tg:seogoogle987】,Nol
- https://www.nissin.com/jp/search/?cat=105&q=谷歌留痕外推【tg:seogoogle987】,nJ0
- https://www.kingston.gov.uk/site-search/results/?q=谷歌留痕外推【tg:seogoogle987】,jmu
- https://www.tarleton.edu/?s=谷歌留痕外推【tg:seogoogle987】,4jS
- https://www.smarty.net/search?q=谷歌留痕外推【tg:seogoogle987】,Njl
- https://www.u-bourgogne.fr/?cat=117&s=谷歌留痕外推【tg:seogoogle987】,IQS
- https://search.danawa.com/dsearch.php?query=谷歌留痕外推【tg:seogoogle987】6WV
- https://www.signingsavvy.com/sentence/谷歌留痕外推【tg:seogoogle987】,mW4
- https://www.teamlab.art/fr/?submit=谷歌留痕外推【tg:seogoogle987】,kKi
- https://www.totolink.vn/search/谷歌留痕外推【tg:seogoogle987】,JJh
- https://www.losgatoschamber.com/list/search?action=SEARCH&q=谷歌留痕外推【tg:seogoogle987】,3QU
- https://www.whatsonstage.com/search?cat=64&term=谷歌留痕外推【tg:seogoogle987】,yrL
- https://www.universal-music.co.jp/search/?q=谷歌留痕外推【tg:seogoogle987】,jNV
- https://www.seagrant.wisc.edu/?page=63&s=谷歌留痕外推【tg:seogoogle987】,zFJ
- https://www.oprny.com/search.php?search_query=谷歌留痕外推【tg:seogoogle987】,CmS
- https://www.rea.govt.nz/search?searchterm=谷歌留痕外推【tg:seogoogle987】,ODE
- https://www.simcoemuskokahealth.org/SearchResults.aspx?SearchQuery=谷歌留痕外推【tg:seogoogle987】,2nb
- https://www.kores.com/?s=谷歌留痕外推【tg:seogoogle987】,0dJ
- https://www.duksung.ac.kr/search/front/Search.jsp?qt=谷歌留痕外推【tg:seogoogle987】Lxi
- https://www.kelsa.co.uk/catalogsearch/result/index/?T=1686132119291&q=谷歌留痕外推【tg:seogoogle987】,MIa
- https://www.ncetm.org.uk/search?action=CHECK&q=谷歌留痕外推【tg:seogoogle987】,g6d
- https://www.reginatangoshoes.com/en/catalogsearch/result/index/?T=1686132113407&q=谷歌留痕外推【tg:seogoogle987】,lrq
- https://www.pacific-lifestyle.co.uk/search?sort=alphabetical&term=谷歌留痕外推【tg:seogoogle987】,cg2
- https://www.scivee.tv/?s=谷歌留痕外推【tg:seogoogle987】,UvF
- https://www.sic-info.org/en/?s=谷歌留痕外推【tg:seogoogle987】,AqS
- https://www.krisinformation.se/en/search?q=谷歌留痕外推【tg:seogoogle987】,0Wx
- https://www.remit.co.jp/pt/?action=CHECK&s=谷歌留痕外推【tg:seogoogle987】,zTd