Using moby-engine-19.03.8-1.ce.gitafacb8b.fc31.x86_64 Trying to start the service, in system log May 6 15:35:24 builder dockerd[4577]: failed to start daemon: error initializing graphdriver: /var/lib/docker contains several valid graphdrivers: devicemapper, overlay2; Please c <RemiFedora> leanup or explicitly choose storage driver (-s <DRIVER>) Indeed, after adding "--storage-driver overlay2 \" in /etc/sysconfig/docker, service start So - why this error, shouldn't this work out of the box with default config ? - what is the proper value ? P.S. and no, I don't plan to switch to podman, to much perm issues for now.
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.