How to forward traffic from a container that lives in Swarm? #1302
Unanswered
marcusique
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm running several containers on Caprover that operates in Swarm mode. In addition to that, I'm running my gluetun container outside of it and it works perfectly well. Now, I would like to forward traffic from one of my Caprover containers through the gluetun container. I was suggested to run a
docker service update
on that container to change the network it's using, something like this:docker service update srv-captain--yourappname --network-rm captain-overlay-network --network-add .........
From this point, I wasn't sure what I was doing, but I tried the following and couldn't make it work
docker service update srv-captain--myappname --network-rm captain-overlay-network --network-add container:gluetun
Error: No such network: container:gluetun
docker service update srv-captain--myappname --network-rm captain-overlay-network --network-add service:gluetun
Error: No such network: service:gluetun
Could you help me with it?
Beta Was this translation helpful? Give feedback.
All reactions