JimmyLv / JimmyLv/reading

三个技巧将Docker镜像体积减小90%

Open
#3,853 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
26
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## 三个技巧,将Docker镜像体积减小90%

在构建Docker容器时,应该尽量想办法获得体积更小的镜像,因为传输和部署体积较小的镜像速度更快。 但RUN语句总是会创建一个新层,而且在生成镜像之前还需要使用很多中间文件,在这种情况下,该如何获得体积更小的镜像呢? 你可能已经注意到了,大多数Dockerfiles都使用了一些奇怪的技巧: FROM ubuntuRUN…



September 7, 2018 at 12:38AM

via Instapaper http://www.infoq.com/cn/articles/3-simple-tricks-for-smaller-docker-images

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the linked InfoQ article to understand the proposed Docker image-sizing tips. The issue does not mention a repository file, test, or concrete change, so the expected representation and completion criteria are not specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
content
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.