devmapper: Usage of loopback devices is strongly

简介:

启动docker报错

[root@ opt]# systemctl status docker.service -l

● docker.service - Docker Application Container Engine

   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)

   Active: activating (start) since 二 2017-11-07 16:46:51 CST; 9s ago

     Docs: http://docs.docker.com

▽Main PID: 8856 (docker-current)

   Memory: 341.8M

   CGroup: /system.slice/docker.service

           └─8856 /usr/bin/docker-current daemon --exec-opt native.cgroupdriver=systemd --selinux-enabled --ip=10.2.0.6 -b=docker0 --insecure-registry=10.2.0.6:5000


11月 07 16:46:51 systemd[1]: Starting Docker Application Container Engine...

11月 07 16:46:59 docker-current[8856]: time="2017-11-07T16:46:59.653934630+08:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."

11月 07 16:46:59  docker-current[8856]: time="2017-11-07T16:46:59.868187155+08:00" level=warning msg="devmapper: Base device already exists and has 


filesystem xfs on it. User specified filesystem  will be ignored."

11月 07 16:46:59  docker-current[8856]: time="2017-11-07T16:46:59.886541240+08:00" level=info msg="[graphdriver] using prior storage driver \"devicemapper\""

临时解决方案:

 vim /etc/sysconfig/docker

DOCKER_STORAGE_OPTIONS="--storage-opt dm.no_warn_on_loop_devices=true"


      本文转自crazy_charles 51CTO博客,原文链接:http://blog.51cto.com/douya/1979679,如需转载请自行联系原作者




相关文章
|
安全
解决:efi usb device has been blocked by the current security policy
解决:efi usb device has been blocked by the current security policy 问题描述:U盘装系统或者其他操作时,是因为BIOS安全策略,出现上述错误无法进入后续步骤。 解决方法:按F2(Fn+F2)进入BIOS,在secure Boot 中security选择disable。解决! 延伸(可不读): 黑苹
11030 0