On 05/15/2018 07:44 PM, Rares Vernica wrote: > Hi, > > I installed the latest CentOS image on bare metal. Docker seems to work fine, > but I get an error message at start-up about the docker-storage-setup service > failing to start. I am happy with the current Docker storage setup, I just > want want this storage service to be happy and not error at start-up. > > This is what I get when I check the status of the service: > > # systemctl status docker-storage-setup.service -l > ● docker-storage-setup.service - Docker Storage Setup > Loaded: loaded (/usr/lib/systemd/system/docker-storage-setup.service; > enabled; vendor preset: disabled) > Active: failed (Result: exit-code) since Tue 2018-05-15 15:48:52 PDT; > 28min ago > Process: 992 ExecStart=/usr/bin/container-storage-setup (code=exited, > status=1/FAILURE) > Main PID: 992 (code=exited, status=1/FAILURE) > > May 15 15:48:50 blu systemd[1]: Starting Docker Storage Setup... > May 15 15:48:52 blu container-storage-setup[992]: ERROR: Storage is already > configured with devicemapper driver. Can't configure it with overlay2 driver. > To override, remove /etc/sysconfig/docker-storage and retry. > May 15 15:48:52 blu systemd[1]: docker-storage-setup.service: main process > exited, code=exited, status=1/FAILURE > May 15 15:48:52 blu systemd[1]: Failed to start Docker Storage Setup. > May 15 15:48:52 blu systemd[1]: Unit docker-storage-setup.service entered > failed state. > May 15 15:48:52 blu systemd[1]: docker-storage-setup.service failed. > > And this is the current content of the docker-storage file: > > # cat /etc/sysconfig/docker-storage > DOCKER_STORAGE_OPTIONS="--storage-driver devicemapper --storage-opt dm.fs=xfs > --storage-opt dm.thinpooldev=/dev/mapper/cah_blu-docker--pool --storage-opt > dm.use_deferred_removal=true --storage-opt dm.use_deferred_deletion=true " > > I'm a bit confused why the service complains about overlay2 driver when only > devicemapper is mentioned in the docker-storage file.
I think we need to look at the contents of /etc/sysconfig/docker-storage-setup. What is in that file? Did you just install the latest? Did you do any upgrades since then? I just updated a node from 7.1711 to 7.1803 and I see an issue where docker won't come up because of a similar problem (i.e. issue with docker-storage-setup service), but I also see another problem. I documented the issues in https://pagure.io/atomic-wg/issue/498 Dusty