Unit in Docker as random user

Tobias Genannt tobias.genannt at kappa-velorum.net
Tue Nov 10 10:18:11 UTC 2020


Hi,

I did some more testing with a debug build, like you suggested. It seems 
that the problem is the --log parameter I used.

Run with:
CMD ["unitd", "--no-daemon", "--control", "*:7777", "--pid", 
"/opt/unit/unit.pid", "--state", "/opt/unit/state/", "--tmp", 
"/opt/unit/tmp/", "--log", "-"]
https://gist.github.com/tobiasge/2b1608574709619e7b6b897d93225313


Run with:
CMD ["unitd", "--no-daemon", "--control", "*:7777", "--pid", 
"/opt/unit/unit.pid", "--state", "/opt/unit/state/", "--tmp", 
"/opt/unit/tmp/", "--log", "/opt/unit/unit.log"]
https://gist.github.com/tobiasge/da254adf02b2744edc5430265a372dad


I run unit with "--no-daemon" because it will be the only process in my 
container and I want all logging output go to stdout. When I give no 
"--log" parameter unit wants to create a log in /var/log. That's why I 
tried with "--log -".


Kind regards,
Tobias

On 10/11/2020 09:25, Valentin V. Bartenev wrote:
> Hi,
> 
> In order to investigate this strange behaviour, please try to run Unit
> with debug enabled.
> 
> See here for more information:
> 
>    https://unit.nginx.org/troubleshooting/#debug-log
> 
>   wbr, Valentin V. Bartenev
> 


More information about the unit mailing list