知识卡片
镜像分层复用未变依赖
容器镜像按构建步骤分层,上层变化可复用已有下层,避免每次重新传输全部依赖。修改较早层通常会影响其后步骤,因此稳定依赖宜放在可复用底层。把构建说明当代码做版本控制、测试与审查能提升可重复性;具体缓存和传输时间仍取决于平台与镜像,不能承诺固定微秒启动。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
- · 第16章 虚拟化
原书出处 · 1 处
- 虚拟化 · 查看原书依据
The container management system knows that only PHP was revised and moves only the PHP layer of the image. This saves the effort involved in moving the rest of the stack.
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第16章《虚拟化》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch16.html)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:The container management system knows that only PHP was revised and moves only the PHP layer of the image. This saves the effort involved in moving the rest of the stack.