<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">Ah ok! Got it. Thanks Tristan.</div><div dir="ltr"><br>On 22 Jan 2019, at 22:59, Tristan Sloughter <<a href="mailto:t@crashfast.com">t@crashfast.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><title></title><div>`attach` is only for if you use the `start` (the Dockerfile example you link to uses `foreground`) which runs the release with `run_erl` (see <a href="http://erlang.org/doc/man/run_erl.html">http://erlang.org/doc/man/run_erl.html)</a>.</div><div><br></div><div>I would advise against using `start` and thus not using `attach`. I don't think it would even be possible to make work with a docker container and would not be useful even if it could.<br></div><div><br></div><div>I wish I had removed `start` and `attach` from relx years ago because they cause confusion often and I think are rarely, if ever, needed.<br></div><div><br></div><div>Maybe it will be done for the next major release of relx and rebar3 :)<br></div><div><br>Tristan</div><div><br></div><div>On Tue, Jan 22, 2019, at 15:11, Igor Clark wrote:<br></div><blockquote type="cite" id="fastmail-quoted"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi folks,<br></div><div><br></div><div>I'm running an R21 release inside a docker container, basically doing what <a href="https://github.com/erlang/docker-erlang-example">https://github.com/erlang/docker-erlang-example</a> does. (It works great for my app, so thanks for that!)<br></div><div><br></div><div>When I do this:<br></div><div><br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="fastmail-quoted-gmail_quote"> docker exec -ti <container> /app/bin/app attach<br></blockquote><div><br></div><div>I get this:<br></div><div><br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="fastmail-quoted-gmail_quote">failed to attach, user '' does not have sufficient privileges on '/tmp/erl_pipes/mwc@66ac12b78073/', please run node as a different user<br></blockquote><div><br></div><div>I can run 'remote_console' just fine, and everything else is working as expected too. I've tried hacking it to work by setting ${USER} via the environment (in which case it just says "user 'XX" does not have privileges..."), and even setting all the vars I retrieve via os:getenv() when running under remote_console, but no dice.<br></div><div><br></div><div>When I 'docker exec' with /bin/sh and have a look in /tmp, there's nothing in there at all, as expected, and certainly no 'erl_pipes'. Which I guess might be something to do with the build steps.<br></div><div><br></div><div>Any clues on how to get this working?<br></div><div><br></div><div>Thanks!<br></div><div>Igor<br></div></div></div></div><div>_______________________________________________<br></div><div>erlang-questions mailing list<br></div><div><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br></div><div><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div><div><br></div></blockquote><div><br></div></div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>