加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

为什么Docker需要联合文件系统

发布时间:2020-12-16 03:30:03 所属栏目:安全 来源:网络整理
导读:Docker做什么与Union File系统(如AUFS)一起创建容器?如果Docker不得不使用常规文件系统而不是联合文件系统会有哪些缺点? 我正在寻找具体的技术细节/内部,而不是一个高水平的答案. 最佳答案 它用于: 避免每次以新容器运行图像时复制一组完整的文件 将容器

Docker做什么与Union File系统(如AUFS)一起创建容器?如果Docker不得不使用常规文件系统而不是联合文件系统会有哪些缺点?

我正在寻找具体的技术细节/内部,而不是一个高水平的答案.

最佳答案
它用于:

>避免每次以新容器运行图像时复制一组完整的文件
>将容器文件系统的更改隔离在其自己的层中,允许从已知内容重新启动相同的容器(因为在删除容器时,更改的层将被关闭)

那UnionFS:

implements a 07001 for other file systems. It allows files and directories of separate file systems,known as branches,to be transparently overlaid,forming a single coherent file system.
Contents of directories which have the same path within the merged branches will be seen together in a single merged directory,within the new,virtual filesystem.

This allows a file system to appear as writable,but without actually allowing writes to change the file system,also known as 07002

如果您没有UnionFS,则运行5倍5分钟的200MB映像容器将意味着1GB的磁盘空间.

查看更多在“How does a Docker image work?”.
有关更多技术细节,请参阅:

>“Docker storage drivers”
> Anatomy of a Container: Namespaces,cgroups & Some Filesystem Magic从Jér?me Petazzoni (jpetazzo).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读