unraid / webgui

Unraid Web UI
158 stars 70 forks source link

Update rc.docker #1872

Closed ich777 closed 1 month ago

ich777 commented 1 month ago

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): Peek 2024-09-24 15-56