Don't kill containers since Docker will kill them if they won't stop after the set timeout when the daemon is stopping
Increase timeout for daemon to die to 30 seconds (seems a bit short if 3rd party containers are installed)
Rephrase message for daemon to die and display it only once
This is a further improvement to Docker for third party containers to honor their restart policy.
Currently Unraid stops all container regardless if they are manged by Unraid or not, with that change it will only stop containers managed by Unraid (or Compose) and therefore honor the restart policy for 3rd party managed containers.
In the following animation you'll see the third party container named affectionate_meninsky with the restart policy --restart=unless-stopped will automatically start after docker is restarted, you'll also notice that it will take about 12 seconds for the daemon to die because the above mentioned container doesn't catch the exit signal and therefore Docker executes docker kill to kill the container after the set timeout from 10 seconds (you might have to click on the animation to actually see what's going on):
This is a further improvement to Docker for third party containers to honor their restart policy. Currently Unraid stops all container regardless if they are manged by Unraid or not, with that change it will only stop containers managed by Unraid (or Compose) and therefore honor the restart policy for 3rd party managed containers.
In the following animation you'll see the third party container named
affectionate_meninsky
with the restart policy--restart=unless-stopped
will automatically start after docker is restarted, you'll also notice that it will take about 12 seconds for the daemon to die because the above mentioned container doesn't catch the exit signal and therefore Docker executesdocker kill
to kill the container after the set timeout from 10 seconds (you might have to click on the animation to actually see what's going on):