Docker routes not working when Firewalla rebooted
Hi,
I have the following in ~/.firewalla/config/post_main.d/start_docker.sh:

For some reason the last two lines are not creating the routes at the time when the script runs when Firewalla reboots. If I SH into firewalla and run those last two route lines, the docker access then works fine. I added the "sleep 2" but it didn't help. Any ideas?
This is a Firewalla Gold Plus on v1.978.
Thanks,
Gary.
-
Likely the docker container wasn't started, try this; you probably want to write some code to prevent the sleep for too long or check for routes is successful or not.
#!/bin/bash
# Function to execute the process
run_process() {
echo "Child process is running..."
sleep 5 # Just for demonstration
echo "Child process completed."
}
nohup bash -c 'run_process' >/dev/null 2>&1 & -
Add peristent routes in netplan.
https://www.configserverfirewall.com/ubuntu-linux/add-permanent-static-route-ubuntu/
-
Add peristent routes in netplan.
https://www.configserverfirewall.com/ubuntu-linux/add-permanent-static-route-ubuntu/
Please sign in to leave a comment.
Comments
4 comments