<div dir="ltr"><div dir="ltr">I use netlink(<a href="https://github.com/Feuerlabs/netlink">https://github.com/Feuerlabs/netlink</a>) 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.</div><div>I build a simple project in the github, <a href="https://github.com/getong/netlink_docker">https://github.com/getong/netlink_docker</a> , you can check it out.</div><div>The things goes wrong when the second container starts with the same image.</div><div>As <a href="https://github.com/getong/netlink_docker#error-message">https://github.com/getong/netlink_docker#error-message</a> show:</div><div><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;margin-top:0px;background-color:rgb(246,248,250);border-radius:3px;line-height:1.45;overflow:auto;padding:16px;color:rgb(36,41,46);margin-bottom:0px"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;background:transparent;border-radius:3px;margin:0px;padding:0px;border:0px;word-break:normal;display:inline;line-height:inherit;overflow:visible">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]],[]</code></pre></div></div>