Skip to content

Commit 03a1793

Browse files
committed
Drops privileges to user 101 and group 0
When the container is started as root the default was to drop privileges to "unit:unit". This caused some problems with temporary files. Now the privileges are drop to "101:0". When the container is started as a normal user unit prints a warning that changing the user and group is not possible. This warning is safe to ignore.
1 parent 3c01985 commit 03a1793

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/launch-netbox.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ exec unitd \
5151
--pid /opt/unit/unit.pid \
5252
--log /dev/stdout \
5353
--state /opt/unit/state/ \
54-
--tmp /opt/unit/tmp/
54+
--tmp /opt/unit/tmp/ \
55+
--user 101 \
56+
--group 0

0 commit comments

Comments
 (0)