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
).