You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
I'm trying to run two containers for an erlang application, which requires them to know docker ips of each other. Basically this two containers need access to each other for port 4369 (fixed port) in order to create a cluster. 1-#{system-name}.dev.azk.io maps to ip of the docker bridge. Is there any option to set the dns name to the container ip ?
I can not map port 4369 to other port on docker bridge, since erlang expects this port and doesn't seem to have any configuration for it.
The text was updated successfully, but these errors were encountered:
Unfortunately, that isn't supported yet. Like you said, isn't possible to map two containers to the same port.
More than that, the ideal solution is a way to create a virtual network between some specific containers, in a way that they behave like completely different nodes.
We plan to address this issue at some point in the future, so I will keep this issue opened.
Is there any option to insert/remove records from the dns service used by azk ? This way I can wrap the init function in my container to something like this:
IP=$(hostname -i)
# create dns entry my-app-1.internal.dev.azk.io => $IP
run_my_app
# delete dns entry my-app-1.internal.dev.azk.io
I need to be able to scale the service to 2-3 instances and connect them by internal ip (172.17.42.100, 172.17.42.123 and 172.17.42.125) for example, so I can test clustering while developing the erlang service.
Anyway, sorry for the trouble, I think I also need to know how many instances are running for the same service after the service started in order to cluster them properly, so I will use something like etcd or consul.
Hi,
I'm trying to run two containers for an
erlang
application, which requires them to know docker ips of each other. Basically this two containers need access to each other for port 4369 (fixed port) in order to create a cluster.1-#{system-name}.dev.azk.io
maps to ip of the docker bridge. Is there any option to set the dns name to the container ip ?I can not map port 4369 to other port on docker bridge, since erlang expects this port and doesn't seem to have any configuration for it.
The text was updated successfully, but these errors were encountered: