While uid/gid is exposed, it looks like you do not set the docker user/group with it but instead try expect to add app:app and set that account. It looks like its erroring when trying to add the group with the gid if its already existing so there is a conflict:
For example with unraid, it runs dockers as nobody:users
# id nobody
uid=99(nobody) gid=100(users)
Setting KODI_GID set to 100 it errors as it already exists:
groupadd: GID '100' already exists
chown: invalid group: 'app:app'
chown: invalid group: 'app:app'
Traceback (most recent call last):
File "/usr/bin/supervisord", line 33, in <module>
sys.exit(load_entry_point('supervisor==4.2.1', 'console_scripts', 'supervisord')())
File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 361, in main
go(options)
File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 371, in go
d.main()
File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 72, in main
self.options.make_logger()
File "/usr/lib/python3/dist-packages/supervisor/options.py", line 1470, in make_logger
loggers.handle_file(
File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 415, in handle_file
handler = FileHandler(filename)
File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 160, in __init__
self.stream = open(filename, mode)
PermissionError: [Errno 13] Permission denied: '/dev/fd/1'
crudely, setting KODI_PID but not setting KODI_GID, at least got the docker to start and work. just side effect is that files on the nas end up nobody:2000 due to gid not getting set.
Looking at other dockers, it looks like rather than trying to add user+group app with the guid/uid you add them with something that is not used, so your 2000:2000 but then you set set the uid/gid as the user passes with the vars.
Could also add umask to give users even further control. Example from another docker:
While uid/gid is exposed, it looks like you do not set the docker user/group with it but instead try expect to add app:app and set that account. It looks like its erroring when trying to add the group with the gid if its already existing so there is a conflict:
For example with unraid, it runs dockers as nobody:users
Setting
KODI_GID
set to100
it errors as it already exists:crudely, setting
KODI_PID
but not settingKODI_GID
, at least got the docker to start and work. just side effect is that files on the nas end upnobody:2000
due to gid not getting set.Looking at other dockers, it looks like rather than trying to add user+group app with the guid/uid you add them with something that is not used, so your 2000:2000 but then you set set the uid/gid as the user passes with the vars.
Could also add umask to give users even further control. Example from another docker:
btw the novnc addition to this makes it pretty slick to use