<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><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>erlang-questions@erlang.org<br></div><div>http://erlang.org/mailman/listinfo/erlang-questions<br></div><div><br></div></blockquote><div><br></div></body></html>