ZaneyPoo / QuadBot

QuadBot - A silly Discord bot for me and my friends
2 stars 0 forks source link

Container does not automatically restart on Docker daemon restart #12

Closed ZaneyPoo closed 2 months ago

ZaneyPoo commented 7 months ago

Problem

The container does not automatically restart if the Docker daemon is restarted. For example, yesterday I updated the host server and had to restart the Docker daemon to apply those updates.

Steps to reproduce

  1. Restart Docker daemon
  2. Check if quadbot container is currently running

Potential solution

We can just add this line to the compose file:

services:
    quadbot:
        restart: always

And that should fix the issue.