Restart container after power failure


I am new to docker, and I have just got it installed on my virtual machine on my truenas server. I have installed the Ignition docker hub, and it works fine. Only problem is that when i restart my truenas/VM, i have to manually start Ignition from portainer to get it running again.

Is it possible to have it auto-restarted?

Do you really use Docker Desktop? You have chosen the category “Docker Desktop for Linux”, although basd on your post it seems you have your own virtual machine and not Docker Desktop.

Docker and Docker desktop should be restarted by systemd if you enabled it. For Docker containers you need to set the restart policy to always.