Open 0x6f677548 opened 2 weeks ago
2024/09/13 16:06:51 [alert] 1#1 bind(6, unix:/var/run/control.unit.sock.tmp) failed (13: Permission denied)
You will need to specify --control
to point to someplace your user has permissions to read/write. Probably the same for --pid
, --log
& --statedir
unitd --version
will show you the default values for these things...
It seems that although unit is running as unit (uid:999), the log file is created as root:
This is due to
root 1 0.0 0.0 10084 4324 ? Ss 15:59 0:00 unit: main v1.32.1 [unitd --no-daemon --control unix:/var/run/control.unit.sock]
Hi; docker container image: unit:python3.12
my config includes:
It seems that although unit is running as unit (uid:999), the log file is created as root:
1) is there any way to run the container as non-root? I already tried to run it with the same user, but I get:
2) Is there any way to create the log file as non-root?
This is somehow related with #193 as I am trying to overcome this limitation by sharing the log file with another otel-collector container that does not run as root. Any alternative suggestion would be welcome. thanks