TE
테크에코
홈24시간 인기최신베스트질문쇼채용
GitHubTwitter
홈

테크에코

Next.js로 구축된 기술 뉴스 플랫폼으로 글로벌 기술 뉴스와 토론을 제공합니다.

GitHubTwitter

홈

홈최신베스트질문쇼채용

리소스

HackerNews API원본 HackerNewsNext.js

© 2025 테크에코. 모든 권리 보유.

Accelerating Docker Builds by Halving EC2 Boot Time

20 포인트작성자: Telstrom903일 전

2 comments

westurner1일 전
RUN --mount=type=cache can also significantly reduce build times if there is inter-build locality; i.e. if container build jobs run on the same nodes so that cache mounts can be reused by subsequent build jobs.<p>Examples of docker image cache mounts:<p><pre><code> # yum + dnf RUN --mount=type=cache,id=yum-cache,target=&#x2F;var&#x2F;cache&#x2F;yum,sharing=shared \ --mount=type=cache,id=dnf-cache,target=&#x2F;var&#x2F;cache&#x2F;dnf,sharing=shared \ # apt RUN --mount=type=cache,id=aptcache,target=&#x2F;var&#x2F;cache&#x2F;apt,sharing=shared # pip RUN --mount=type=cache,id=pip-cache,target=${apphome}&#x2F;.cache&#x2F;pip,sharing=shared \ # cargo w&#x2F; uid=1000 RUN --mount=type=cache,id=cargocache,target=${apphome}&#x2F;.cargo&#x2F;registry,uid=1000,sharing=shared \ </code></pre> &quot;Optimize cache usage in builds&quot; <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;build&#x2F;cache&#x2F;optimize&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;build&#x2F;cache&#x2F;optimize&#x2F;</a>
JackSlateur3일 전
Why would you start an instance every time you build a container ?<p>I am missing something here ..
评论 #44065790 未加载
评论 #44066206 未加载
评论 #44070930 未加载
评论 #44065684 未加载