Docker Help Ubuntu - Containers won't work after Reboot

So I’m trying to install a CCTV system (Kerberos.io) and one of the methods of having multiple cameras is by using Docker and creating containers. I create the containers with no issue and they fully work. As soon as I restart my VM they all stop working.

I can connect to each container with no issue.

Here’s a screenshot (cropped) after I reboot my virtual machine.

I’m pretty sure it’s something simple like a service not running or a command to run these containers but I can’t find any solution online.

Any help would be much appreciated.

Hi, if you are running single containers without a swarm you can create a entry in your crontab like that for each container:

@reboot (sleep 30s ; cd path_to_your_dockerfile ; /usr/bin/docker-compose up -d )&

Regards