[erlang-questions] Can't connect to Erlang node in docker

Juan Jose Comellas juanjo@REDACTED
Wed Jun 5 14:27:41 CEST 2019

This is most probably not a problem with Erlang but missing configuration
settings in Docker. Have you published or exposed the ports outside of the
Docker container [1]? Are you starting the containers individually or are
you using docker-compose or something like that?

I would recommend reading up on the different options that Docker provides
for networking. If you send some sample Dockerfile or docker-compose.yml
file with the arguments you're using to start the nodes, we could provide
better feedback.

[1] https://docs.docker.com/config/containers/container-networking/

On Wed, Jun 5, 2019 at 9:11 AM Roger Lipscombe <roger@REDACTED>

> I've got an Erlang node running in docker[1]. How do I connect to it
> from the host?
> I've tried every combination of -name, -sname, etc., that I can think
> of, and all I'm getting is 'pang'.
> I can telnet to the distribution port on the container; if I use
> erl_epmd:names/1, passing the DNS name of the docker container, it
> returns the expected Erlang nodes.
> But I can't get Erlang distribution to connect from the host to the
> node in the docker container.
> Interestingly, if I connect from the node inside docker to a node on
> the host, it all starts working. But that's not useful for what I'm
> trying to do.
> [1] actually several Erlang nodes in several docker containers.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190605/6fb37053/attachment.htm>

More information about the erlang-questions mailing list