Docker service is not waiting for all host zfs volumes to mount at boot prior to starting service...more specifically the zfs volume that I have mounted at /var Subsequent reboots result in zfs volume failed to mount as the directory is no longer empty due to docker writing to the /var/lib directory. I booted into live environment to investigate and clear out the files that were created. This allowed me to reboot system without issue, I then disabled the docker service and rebooted multiple times without issue again. Found this similar issue from an Ubuntu issue that might be related... https://serverfault.com/questions/904421/docker-service-starts-before-zfs
are you using openrc or systemd? for openrc you can add rc_need="zfs-mount" to /etc/conf.d/docker if you use zfs storage graph driver and openrc will make sure filesystems mounted before docker starts. I'm sure you can do similar thing for systemd as well.
(In reply to Georgy Yakovlev from comment #1) > are you using openrc or systemd? > > for openrc you can add > rc_need="zfs-mount" to /etc/conf.d/docker if you use zfs storage graph > driver and openrc will make sure filesystems mounted before docker starts. > > I'm sure you can do similar thing for systemd as well. Hi, yes I use openrc. The weird part is that I have gone through subsequent reboots since and have not experienced issues. However, I will double check as I may have stopped it from automatically starting at boot. If so I'll revert and do as you suggest. Thanks