https://bugzilla.redhat.com/show_bug.cgi?id=1316210

            Bug ID: 1316210
           Summary: Cannot set dm.basesize until docker has been started
           Product: Fedora
           Version: rawhide
         Component: docker-io
          Severity: medium
          Assignee: ichav...@redhat.com
          Reporter: mason.jo...@creditkarma.com
        QA Contact: extras...@fedoraproject.org
                CC: adima...@gmail.com, admil...@redhat.com,
                    golang@lists.fedoraproject.org, hushan....@gmail.com,
                    ichav...@redhat.com, jchal...@redhat.com,
                    jper...@centos.org, l...@redhat.com,
                    mgold...@redhat.com, mimi...@redhat.com, s...@shk.io,
                    thr...@redhat.com, vba...@redhat.com,
                    wo...@nobugconsulting.ro



Description of problem:

When using terraform to bring up a new EC2 instance with Docker, I wanted to
modify the dm.basesize option before starting Docker. To do this, my script
adds a line to the /etc/sysconfig/docker-storage file:

    DOCKER_STORAGE_OPTIONS= --storage-opt dm.basesize=50G

However, when it then tries to start Docker with systemctl start docker.service
I was getting an error:

    Error starting daemon: error initializing graphdriver: Unknown option
dm.basesize

I had used this same line before, but realized that it was after Docker had
been started at least once on the server. So then I changed things to:

    systemctl start docker.service
    Add the line to /etc/sysconfigdocker-storage
    systemctl restart docker.service

This works fine. Maybe Docker needs to be started at least once on the server
in order to initialize the storage subsystem somehow? Before that's done, it
doesn't recognize the storage option. This is sort of crazy, so is there a
proper fix/workaround?

Version-Release number of selected component (if applicable):

Output of "docker version": Docker version 1.7.1, build 446ad9b/1.7.1
This is on AWS EC2, running CentOS Linux release 7.1.1503 (Core).

I first asked this as an issue against Docker
(https://github.com/docker/docker/issues/21037) but they said since it's a Red
Hat-supported build of Docker it should be asked here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
golang mailing list
golang@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/golang@lists.fedoraproject.org

Reply via email to