It looks like this script assumes use of the native Linux client and has been configured for management with systemctl. Would similar be able to be done for docker installs replacing the systemctl
entry with docker restart
of the container? Unsure if the docker container will re-read the yaml on restart of if it would take a full stop/run to do that.
I guess the for i in
would also need to be swapped with some logic that would get the container list from docker ps -a -q
as well…
Thanks for sharing your script! I’ll be watching for your RPi thread as I’ll want to jump in with some of my recent observations of my RPi node.
EDIT: hmm… the curl
line throws a twist in there for docker as well. I am interested in figuring this out for docker nodes and you’ve given me a great start to investigate!
MORE EDIT: I also realized I am not yet making the debug available on my nodes. For those like me that need this info, here’s littleskunk’s previous post on enabling debug, at least for docker nodes: