How do I set container to autostart when rebooting Firewalla?
Hello!
I have a running container on my Firewalla Purple but have to SSH in and start it everytime I reboot the Firewalla. Any tips on how to make my container autostart?
This is the command I use to start:
docker run -d --restart unless-stopped
-
In those articles, if you scroll down, it will have instructions on how to restart / start containers
example:
The docker service and homebridge container won't automatically start after a system reboot, to do so, create the following folder and file
/home/pi/.firewalla/config/post_main.d/start_homebridge.shmkdir /home/pi/.firewalla/config/post_main.d/
and add this to start_homebridge.sh
cd /home/pi/.firewalla/config/post_main.d/
nano start_homebridge.sh#!/bin/bash
sudo systemctl start docker sudo systemctl start docker-compose@homebridge
Please sign in to leave a comment.
Comments
3 comments