Hello, I’m using Docker Swarm to create a cluster and I want the manager to be able to communicate with a process outside Docker. I thought about using Go RPC but I keep getting connection refused.
Is this error normal? If so, what can I do to perform this type of IPC?
Thanks for your time
Sérgio Mendes
If you want to connect to something running outside of Docker you need to either ensure it is somehow accessible within the container’s namespace (e.g., public internet addresses are available but localhost
from the host is not). So you could run your container using --net host
, or just put the other service in a container and use docker network
…
That did the trick. Thanks for the help ( :