OMV6 - Docker's containers don't start after boot

  • Hi,

    OMV-EXTRA Docker 5:20.10.21~3-0~debian-bullseye

    Fresh install...

    None of my containers (including Portainer) start automatically after booting or rebooting.

    Restart policies is set at "unless stop" for all containers.

    OMV-EXTRA GUI report Docker to be up & running after rebooting.

    In order to get all containers to start automatically, I need to 'restart' Docker via the OMV_EXTRA GUI.


    Am I missing something here?


    Any hints on how to solve this ?


    Thanks

    OMV 7.7.18-1 (Sandworm) | Kernel Linux 6.12.55-current-rockchip64 I 2 x NanoPi M4V2 - SATA Hat with 4x2TB HDD + 1x 1TB SDD

  • Did you upgraded from OMV5 or is it a fresh OMV6 install?


    How did you install docker?

  • OMV6 Fresh install...both Armbian Bullseye (Debian 11) and thereafter OMV6.

    OMV6 installed with armbian-config script.

    Then following this guide "[How to] Prepare OMV to install docker applications was useful to set up Docker & Portainer"


    The Portainer Status of OMV-EXTRA GUI is ''No portainer container found." until Docker is restarted

    OMV 7.7.18-1 (Sandworm) | Kernel Linux 6.12.55-current-rockchip64 I 2 x NanoPi M4V2 - SATA Hat with 4x2TB HDD + 1x 1TB SDD

  • OMV6 Fresh install...both Armbian Bullseye (Debian 11) and thereafter OMV6.

    OMV6 installed with armbian-config script.

    You're running on an Odroid or something?

    On OMV6 fresh installs, the delay to wait for the drives to be mounted is already pre-configured so, your issue shouldn't happen.


    You can try to, after restarting docker and the containers running properly, to press install again on OMVextras-->>Docker to see if it corrects itself.

  • OMV6 is running on a NanopiM4V2

    Had OMV5 running fine for 2 yrs before a total fresh OS and OMV re-install


    Ok, I just tried to re-install docker from OMVextra and rebooted...no change... the same problem.

    OMV 7.7.18-1 (Sandworm) | Kernel Linux 6.12.55-current-rockchip64 I 2 x NanoPi M4V2 - SATA Hat with 4x2TB HDD + 1x 1TB SDD

  • Quote

    On OMV6 fresh installs, the delay to wait for the drives to be mounted is already pre-configured so, your issue shouldn't happen.


    Just a thought...is there a way for me to increase the delay on my system for testing purpose?

    OMV 7.7.18-1 (Sandworm) | Kernel Linux 6.12.55-current-rockchip64 I 2 x NanoPi M4V2 - SATA Hat with 4x2TB HDD + 1x 1TB SDD

  • SOLVED!

    Looking at the syslog, the system struggled to mount the drive on which docker is set to run.

    fsck corrected a few problems on that drive and now all my containers are running after booting


    Thank you for nudging me in the right direction :)

    OMV 7.7.18-1 (Sandworm) | Kernel Linux 6.12.55-current-rockchip64 I 2 x NanoPi M4V2 - SATA Hat with 4x2TB HDD + 1x 1TB SDD

  • Ok, I just tried to re-install docker from OMVextra and rebooted...no change... the same problem

    Post the output of:
    cat /etc/fstab

    omv-showkey mntent

    cat /etc/systemd/system/docker.service.d/waitAllMounts.conf


    Just a thought...is there a way for me to increase the delay on my system for testing purpose?

    There was a way on OMV5, but with OMV6, it shouln't be required because of how OMV installs docker and takes care of the dependency of the mounted drives prior to launch the docker/containers

  • I'm having this problem too. I've moved my Docker data off the root and to a disk (/srv/dev-disk-by-by-uuid-....) and my containers never come up on boot, even though they are set to restart: unless-stopped.


    My OMV started at v5. I would guess the problem is that Docker is starting before the disk is mounted.


    Post the output of:
    cat /etc/fstab

    omv-showkey mntent

    cat /etc/systemd/system/docker.service.d/waitAllMounts.conf


    I have no /etc/systemd/system/docker.service.d.


    fstab says


    Code
    UUID=9865a0b7-94e4-469a-8102-02611e455672 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1
    tmpfs /tmp tmpfs defaults,nosuid 0 0
    # >>> [openmediavault]
    /dev/disk/by-uuid/acc49cfe-4343-414f-8583-5575550dfac6        /srv/dev-disk-by-uuid-acc49cfe-4343-414f-8583-5575550dfac6    ext4    defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl    0 2
    # <<< [openmediavault]


    and omv-showkey says


  • My OMV started at v5. I would guess the problem is that Docker is starting before the disk is mounted.

    But did you upgraded to OMV6?


    If you are already running OMV6, and on the omv-extras->docker GUI page, and you have the proper docker root path setted, just click install again and it will create the needed file.

  • If you are already running OMV6, and on the omv-extras->docker GUI page, and you have the proper docker root path setted, just click install again and it will create the needed file.

    Thanks! That created the file, and now my containers starts on boot.


    I had to add another dependency also to fix this. I have /home encrypted with fscrypt, and needed docker to wait until my unlock service ran before starting docker else the containers that need /home still fail.

  • macom

    Added the Label resolved
  • macom

    Added the Label OMV 6.x

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!