docker
  • Introduction
  • 安装
  • 存储驱动选择
  • Dockerfile
    • 前台运行
  • Registry
    • notification
    • auth
      • token认证的设计
    • API
      • pull镜像
      • push镜像
  • 镜像存储
    • 本地存储
    • Registry中的存储
    • 如何判断两个镜像是否是同一个
  • 下载google镜像
  • Docker设置代理
  • 日志
Powered by GitBook
On this page

Was this helpful?

存储驱动选择

0、关于docker后端文件系统的要求(越早解决越好)

方案一:使用direct-lvm(手动创建thin-pool)

方案二:使用overlay2(kernel >= 4.0,xfs的d_type=1或ext4)

选择overlay2的理由:

(1) docker从1.13开始,在支持overlay2的系统上默认使用overlay2

(2) overlay2只对系统内核有要求,不需要其他配置

(3) 在docker-ce-17.03的"select a storage driver"中,优先级为(overlay2 > overlay > devicemapper)

风险:

(1) centos原生使用的内核为3.10,使用overlay2需要将内核升级到4.0或以上,可能存在风险,且网上未找到生产实践类的技术文章

(2) docker-1.12是支持overlayfs的第一个docker版本,docker版本本身也可能存在风险

选择device-mapper的理由:

(1) docker官网对centos下使用devicemapper做过测试验证(centos原生使用的内核版本)

(2) docker官网上说devicemapper经过大量的生产验证

风险:

(1) 自已创建并管理thin-pool,可能会存在风险

参考

Previous安装NextDockerfile

Last updated 4 years ago

Was this helpful?

[1]

https://yq.aliyun.com/ask/47238