Unable to start docker daemon on centos 3.10.0-862.11.6.el7.x86

storage driver changed to devicemapper , however getting error

unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives are specified both as a flag and in the configuration file: storage-dr

Updated sysconfig/docker-storage-setup & /etc/sysconfig/docker-storage config to "devicemapper" ,

daemon.json file is also updated with devicemapper info. still failing with same error.

Any hint what is going wrong ? 

Note: Dont find this issue on 3.10.0-862.9.1.el7.x86_64 

  • post-author-pic
    Terrence C
    09-15-2018

    Can you post your configuration file and I will be happy to have a look!

  • post-author-pic
    Sree C
    09-18-2018

    Thank you . Please find the correct error and content which i can see daemon ,storage setup and storage config file 

    Sep 18 15:22:36 kubmaster systemd[1]: Starting Docker Application Container Engine...

    Sep 18 15:22:36 kubmaster dockerd-current[18437]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives are spec...cemapper)

    Sep 18 15:22:36 kubmaster systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE

    Sep 18 15:22:36 kubmaster systemd[1]: Failed to start Docker Application Container Engine.

     cat daemon.json

    {

    "storage-driver": "devicemapper"

    }

    cat docker-storage

    DOCKER_STORAGE_OPTIONS="--storage-driver devicemapper "

    cat docker-storage-setup

    STORAGE_DRIVER=devicemapper


  • post-author-pic
    Sree C
    09-29-2018

    Any thoughts  @tcox 

Looking For Team Training?

Learn More