Bug 1832301
Summary: | service fail to start "error initializing graphdriver" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Remi Collet <fedora> |
Component: | moby-engine | Assignee: | Olivier Lemasle <o.lemasle> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | o.lemasle |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | moby-engine-19.03.8-2.ce.gitafacb8b.fc32 moby-engine-19.03.8-2.ce.gitafacb8b.fc31 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-23 02:43:52 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Remi Collet
2020-05-06 13:52:26 UTC
Hi Rémi, Did you upgrade from another installation? Or did you previously use devicemapper? The default storage driver is "overlay2", and it is the storage driver Docker recommands for Fedora (https://docs.docker.com/storage/storagedriver/select-storage-driver/). However, it seems that if you previously used devicemapper, you'll still have its configuration and you'll get this error: - https://github.com/moby/moby/issues/22685 - https://stackoverflow.com/questions/45103803/not-able-to-start-docker-on-ubuntu-16-04-2-lts-error-initializing-graphdriver I reproduced the issue with the following steps: 1. Initial state: - default /etc/sysconfig/docker (no explicit --storage-driver) - Overlay2 is used: # docker system info | grep "Storage Driver" Storage Driver: overlay2 2. Add "--storage-driver devicemapper" to /etc/sysconfig/docker 3. Restart docker service The devicemapper driver is used; a warning is printed: # docker system info | grep "Storage Driver" WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release. WARNING: devicemapper: usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device. Storage Driver: devicemapper 4. Restore default /etc/sysconfig/docker (no explicit --storage-driver) 5. Try restarting docker service. It fails with "/var/lib/docker contains several valid graphdrivers: overlay2, devicemapper" 6. Add "--storage-driver overlay2" to /etc/sysconfig/docker 7. Restart docker service. Docker service starts without failure, and uses overlay2. As overlay2 is already the recommended storage driver, it seems safe to add it to /etc/sysconfig/docker in package moby-engine. > Hi Rémi, Simply "Remi" ;) (no accent here in Reims) > Did you upgrade from another installation? Yes, this is an old installation yearly upgraded from F 23 to F31 > Or did you previously use devicemapper? No, never changed anything (excepted the systemd.unified_cgroup_hierarchy=0 in grub config) > As overlay2 is already the recommended storage driver, it seems safe to add it to /etc/sysconfig/docker in package moby-engine. I agree FEDORA-2020-dae86c0820 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-dae86c0820 FEDORA-2020-a658d9abde has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-a658d9abde FEDORA-2020-a658d9abde has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-a658d9abde` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-a658d9abde See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-dae86c0820 has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-dae86c0820` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-dae86c0820 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-a658d9abde has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2020-dae86c0820 has been pushed to the Fedora 31 stable repository. If problem still persists, please make note of it in this bug report. |