docker 启动报错Unknown option dm.no_warn_on_loop_devices

今天把docker升级了下,结果报了一个错说未知的选项,不知是不是最版本取消了

 

[root@castest run]# systemctl status -l docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 二 2016-10-11 11:28:59 CST; 5s ago
     Docs: http://docs.docker.com
  Process: 29176 ExecStart=/usr/bin/docker-current daemon --exec-opt native.cgroupdriver=systemd $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=1/FAILURE)
 Main PID: 29176 (code=exited, status=1/FAILURE)

10月 11 11:28:59 castest.simpletour.com systemd[1]: Starting Docker Application Container Engine...
10月 11 11:28:59 castest.simpletour.com docker-current[29176]: time="2016-10-11T11:28:59.407156986+08:00" level=error msg="[graphdriver] prior storage driver \"devicemapper\" failed: devmapper: Unknown option dm.no_warn_on_loop_devices\n"
10月 11 11:28:59 castest.simpletour.com docker-current[29176]: time="2016-10-11T11:28:59.407301516+08:00" level=fatal msg="Error starting daemon: error initializing graphdriver: devmapper: Unknown option dm.no_warn_on_loop_devices\n"
10月 11 11:28:59 castest.simpletour.com systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
10月 11 11:28:59 castest.simpletour.com systemd[1]: Failed to start Docker Application Container Engine.
10月 11 11:28:59 castest.simpletour.com systemd[1]: Unit docker.service entered failed state.
10月 11 11:28:59 castest.simpletour.com systemd[1]: docker.service failed.
[root@castest run]# systemctl start devicemapper
Failed to start devicemapper.service: Unit devicemapper.service failed to load: No such file or directory.
[root@castest run]#

 

 

解决方法:

[root@castest run]# vim /etc/sysconfig/docker-storage
DOCKER_STORAGE_OPTIONS=""  删除原来的选项即可
[root@castest run]# systemctl start docker.service