Docker-v17 的层级(layer)概念
来源:互联网 发布:网络电话卡是什么 编辑:程序博客网 时间:2024/06/05 20:02
Docker 的层级(layer)概念
1.镜像(images)与层级(layers):
Docker 镜像是由多个文件系统(只读层)叠加而成,每个层仅包含了前一层的差异部分。当我们启动一个容器的时候,Docker 会加载镜像层并在其上添加一个可写层。容器上所做的任何更改,譬如新建文件、更改文件、删除文件,都将记录与可写层上。容器层与镜像层的结构如下图所示。
(A Docker image is built up from a series of layers. Each layer is only a set of differences from the layer before it. The layers are stacked on top of each other. When you create a new container, you add a new writable layer on top of the underlying layers. This layer is often called the “container layer”. All changes made to the running container, such as writing new files, modifying existing files, and deleting files, are written to this thin writable container layer. The diagram below shows a container based on the Ubuntu 15.04 image.)
2.容器(container)与层级(layers):
容器与镜像最大的区别就在于可写层上。如果运行中的容器修改了现有的一个已存在的文件,那该文件将会从可写层下的只读层复制到可写层,该文件的只读版本仍然存在,只是已经被可写层中该文件的副本所隐藏。其中,多个容器共享镜像的结构如下所示。
(The major difference between a container and an image is the top writable layer. All writes to the container that add new or modify existing data are stored in this writable layer. When the container is deleted, the writable layer is also deleted. The underlying image remains unchanged.
Because each container has its own writable container layer, and all changes are stored in this container layer, multiple containers can share access to the same underlying image and yet have their own data state. The diagram below shows multiple containers sharing the same Ubuntu 15.04 image.)
参考资料:
(1).https://docs.docker.com/
阅读全文
0 0
- Docker-v17 的层级(layer)概念
- Unity中Layer的概念
- Docker的概念
- Docker 概念的理解
- Docker的各种概念
- Docker的核心概念
- Flex 层级概念的分析--setElementIndex()与swapElements()与getElementIndex()的解析
- unity学习(三) layer的概念
- Docker教程:docker的概念及安装
- z-index 属性的使用方法和层级树的概念
- CSS中z-index的层级树概念
- Docker的一些概念(1)
- Jquery选择器的概念以及选择器的学习一(基本、层级、简单,另有简单动画效果代码)
- Docker aufs存储驱动layer、diff、mnt目录的区别
- Docker aufs存储驱动layer、diff、mnt目录的区别
- Docker Swarm 中最重要的概念- 每天5分钟玩转 Docker 容器技术(94)
- docker概念
- Docker概念
- atitit 2017年学业计划 v5 r818.xlsx
- 正则表达式速查表
- 学习SpringMVC——通过注解使用SpringMVC
- atitit 课程表终生学习专业进修表从幼儿园到养老院 v2 r818.xlsx
- 20170819WindowsPrj01_02_文件扫描器
- Docker-v17 的层级(layer)概念
- 布丰投针实验(如何将Geogebra动态文件嵌入博客中)
- 缓存架构设计细节二三事
- 猜拳游戏(基于python面向对象1)
- NYOJ-837-Wythoff Game 【威佐夫博奕】
- Maven使用Tomcat热启动问题:java.lang.LinkageError: loader constraint violation
- amap高德地图利用uri api实现商家名片、去这里的功能
- BZOJ 2818
- 【C++标准模板库笔记2】智能指针shared_ptr的简单使用