Closed alexanderadam closed 3 years ago
Hello. Happy to answer your questions as best I can.
I hope this helps, good luck with the rest of your DIND setup, and please let me know how it goes.
Wow, thank you for answering so incredibly fast!
Any chance that you could share the systemd service file?
Hi @alexanderadam. Time for a few corrections re my point (3) above:
Here's the systemd unit we use to launch s6, installed at /etc/systemd/system/s6.service
:
[Unit]
Description=S6
After=sysinit.target
[Service]
ExecStart=/usr/bin/s6-svscan /etc/service
Restart=always
[Install]
WantedBy=multi-user.target
Here's our s6 runscript, installed at /etc/service/docker-ingress-routing-daemon/run
:
#!/bin/bash
. ./data/ingress-node-gateway-ips.sh
exec /usr/bin/pgrphack ./data/docker-ingress-routing-daemon-v3.1.0 --install >>/var/log/docker-ingress-routing-daemon.log 2>&1
We also have:
/etc/service/docker-ingress-routing-daemon/data/docker-ingress-routing-daemon-v3.1.0
export INGRESS_NODE_GATEWAY_IPS="10.0.0.2 10.0.0.3"
in /etc/service/docker-ingress-routing-daemon/data/ingress-node-gateway-ips.sh
(which is legacy API, so you don't need this file; just use --ingress-gateway-ips
on the command line instead)./usr/bin/pgrphack
installed from daemontools, as s6 doesn't include that tool.I hope this helps.
I'm not quite sure whether this is the right place for this and I hope that it it'll be of no harm if I ask here.
But first of all thank you so much for creating this script!
docker-ingress-routing-daemon
work if Docker Swarm is using user namespaces?docker service rm …
) or scaled down (docker service scale …=0
), then run the daemon and then recreate or scale up. Is that correct?