gpt4 book ai didi

linux - Docker CE Overlay2

转载 作者:行者123 更新时间:2023-12-01 04:43:19 25 4
gpt4 key购买 nike

我正在寻找有关在 RHEL 上使用 Docker CE 的清晰度,以及 Overlay 与 Overlay2 文件系统的规定。

从 Docker Docs 我看到以下引号:

Note: If you use OverlayFS, use the overlay2 driver rather than the overlay driver, because it is more efficient in terms of inode utilization. To use the new driver, you need version 4.0 or higher of the Linux kernel.



和...

The overlay2 driver is supported for Docker EE and recommended for Docker CE.



和...

Note: If you use OverlayFS, use the overlay2 driver rather than the overlay driver, because it is more efficient in terms of inode utilization. To use the new driver, you need version 4.0 or higher of the Linux kernel, unless you are a Docker EE user on RHEL or CentOS, in which case you need version 3.10.0-693 or higher of the kernel and to follow some extra steps.



我使用的 AWS AMI 是 RHEL,来自 docker info我看到我有:

Server Version: 17.09.0-ce

Storage Driver: overlay

Kernel Version: 3.10.0-693.11.6.el7.x86_64



是否有使用 Overlay2 FS 的途径,或者我必须将内核升级到 4.0 或使用 Docker EE?

最佳答案

RHEL 的内核 3.10.0-693 确实支持 overlay2,Docker CE 可以像 Docker EE 一样使用它们,因为 Docker EE 和 Docker CE 的 moby 组件本质上是相同的。

如果您在使用 overlay2 时遇到问题但没有 EE 许可证,则此处缺乏对 CE 的支持主要意味着功能和错误修复的优先级级别。当 CE 用户遇到不受支持的配置的问题/错误时,修复它会被视为低优先级,因此这些问题不太可能被修复,除非它影响其他 EE 用户。

关于linux - Docker CE Overlay2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48869913/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com