[erlang-questions] erlang:open_port/2 return eaddrinuse while running with docker, in open network mode.
18年梦醒
getonga2018@REDACTED
Sat Mar 30 14:12:46 CET 2019
I use netlink(https://github.com/Feuerlabs/netlink) in my docker container,
which use erlang:open_port/2. It works fine on my linux host, but something
goes wrong in the docker container with docker open network.
I build a simple project in the github,
https://github.com/getong/netlink_docker , you can check it out.
The things goes wrong when the second container starts with the same image.
As https://github.com/getong/netlink_docker#error-message show:
application: netlink
exited: {{shutdown,
{failed_to_start_child,netlink,
{eaddrinuse,
[{erlang,open_port,
[{spawn_driver,"netlink_drv 0"},[binary]],
[]},
{netlink,init_drv,2,
[{file,
"/build_temp/_build/default/lib/netlink/src/netlink.erl"},
{line,207}]},
{gen_server,init_it,2,
[{file,"gen_server.erl"},{line,374}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,342}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,249}]}]}}},
{netlink_app,start,[normal,[]]}}
type: permanent
Kernel pid terminated (application_controller)
({application_start_failure,netlink,{{shutdown,{failed_to_start_child,netlink,{eaddrinuse,[{erlang,open_port,[{spawn_driver,"netlink_drv
0"},[binary]],[]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190330/e0c3aeae/attachment.htm>
More information about the erlang-questions
mailing list