问题:启动报错

INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
ERRO[0000] [graphdriver] prior storage driver “devicemapper“ failed: Error running DeviceCreate (CreatePool) dm_task_run failed
FATA[0000] Error starting daemon: error initializing graphdriver: Error running DeviceCreate (CreatePool) dm_task_run failed

解决:

 修改配置,删除devicemapper这项配置
cat /etc/sysconfig/docker

other_args="-s=devicemapper --storage-opt dm.basesize=40G --storage-opt dm.loopmetadatasize=10G"
DOCKER_CERT_PATH=/etc/docker

 删除docker目录,重启,重新生成/var/lib/docker目录
rm -rf /var/lib/docker
reboot