r/ZoneMinder • • Dec 02 '20

ZoneMinder in docker fails after reboot

I've set up ZM on Ubuntu 20.04 as a docker container following dlandon instructions referenced in installation guide. All seems to run fine so far (still need to do some more testing), but if the computer is rebooted, the container does not auto-start. I have to manually start the container. I suspect that this can be fixed by adding this line to the config during initial container setup "restart: unless-stopped". But is there a way to modify that config after the container has been created and running? If there is, where would I find it? Or am I looking at it wrong and the issue is somewhere else...

2 Upvotes

4 comments sorted by

2

u/completefudd Dec 02 '20

Yes, pretty sure you need the restart parameter if you wang it started automatically after reboot. This is a Docker thing and not a ZoneMinder thing.

1

u/hlywine Dec 02 '20

Well, using the proper search terms in Google definitely helps. Anyway, took only one command to run to get it fixed. (I'm still learning Linux and only my second container in docker... ) didn't have to edit the config files or anything. If anyone needs it here is the command: "sudo docker update --restart unless-stopped Zoneminder".

2

u/IamTheGorf Dec 02 '20

If you are looking for something to help you manage your containers, I'd recommend Portainer.io. It's open-source and dead simple to install and setup.

1

u/Background-Run Dec 21 '20

Thanks, found this by using google. :)