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

前端之家收集整理的这篇文章主要介绍了为什么Docker需要联合文件系统前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

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

最佳答案
它用于:

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

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.@H_403_11@ 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?”.@H_403_11@有关更多技术细节,请参阅:

>“Docker storage drivers”@H_403_11@> Anatomy of a Container: Namespaces,cgroups & Some Filesystem MagicJérôme Petazzoni (jpetazzo).

原文链接:https://www.f2er.com/docker/436283.html

猜你在找的Docker相关文章