Docker18.06.1-ce安装(RHEL7)后启动失败, 原因(xfsprogs版本过低)
Posted loopsun
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker18.06.1-ce安装(RHEL7)后启动失败, 原因(xfsprogs版本过低)相关的知识,希望对你有一定的参考价值。
- 问题分析:
使用/usr/bin/dockerd启动测试发现是文件系统无法创建
1 WARN[2018-09-15T10:47:39.886191433+08:00] Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man dockerd` to refer to dm.thinpooldev section. storage-driver=devicemapper 2 INFO[2018-09-15T10:47:40.220046362+08:00] Creating filesystem xfs on device docker-253:4-17133027-base, mkfs args: [-m crc=0,finobt=0 /dev/mapper/docker-253:4-17133027-base] storage-driver=devicemapper 3 INFO[2018-09-15T10:47:40.221230038+08:00] Error while creating filesystem xfs on device docker-253:4-17133027-base: exit status 1 storage-driver=devicemapper 4 ERRO[2018-09-15T10:47:40.221258767+08:00] [graphdriver] prior storage driver devicemapper failed: exit status 1 5 Error starting daemon: error initializing graphdriver: exit status 1
第三行日志可以找到mkfs的执行参数, 执行发现参数不正确
1 2 INFO[2018-09-15T10:47:40.220046362+08:00] Creating filesystem xfs on device docker-253:4-17133027-base, mkfs args: [-m crc=0,finobt=0 /dev/mapper/docker-253:4-17133027-base] storage-driver=devicemapper
- 解决问题
yum install xfsprogs
以上是关于Docker18.06.1-ce安装(RHEL7)后启动失败, 原因(xfsprogs版本过低)的主要内容,如果未能解决你的问题,请参考以下文章