Docker slow to start after reboot

  • Code
    according to this https://www.tecmint.com/systemd-analyze-monitor-linux-bootup-performance/
    Code
    ~# systemd-analyze
    Startup finished in 7.151s (firmware) + 4.448s (loader) + 2.637s (kernel) + 2min 2.595s (userspace)                                             = 2min 16.832s
    graphical.target reached after 2min 2.058s in userspace.
    root@openmediavault:~# systemd-analyze
    Startup finished in 7.151s (firmware) + 4.448s (loader) + 2.637s (kernel) + 2min 2.595s (userspace)                                             = 2min 16.832s
    graphical.target reached after 2min 2.058s in userspace.


  • Thank you but so far cannot get a resolution from it! 😥

    Output of:

    systemd-analyze critical-chain



    Stop all containers and triage, one by one and reboot, to see which one is causing the slow start-up.


    As for the link I posted, is to disable the openmediavault-issue.service. What it does (IIRC) was taking care of the initial login message on CLI (not needed)

  • Have you tried what I said on post #5

    Stop all containers and triage, one by one and reboot, to see which one is causing the slow start-up

    The first step would be with ALL containers stopped and reboot.

    This will show only how much time the docker.service takes to start.

    Take notice of the time delay. (the value from critical-chain info after the +. The above shows docker.service @9.003s +1min 53.072s)


    Other thing you can do is on Services-> Compose-> Settings-> click Reinstall Docker.

    Maybe some drive is not added to the WaitAllMounts.conf and it takes longer to find it.


    Just guessing here and have no more ideas for you other than, deal with it.

    Do you reboot that often that you can't live with a 2minute delay without the server?



    [EDIT]

    After a clean start (proper shutdown/start instead of reboot) what is the output of sudo systemctl status docker.service when everything is already running?

    [/EDIT]

Participate now!

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