Docker Container - non root user dev/shm access #20886
Replies: 2 comments 1 reply
-
|
Running Frigate in Docker as a non-root user is possible but requires several adjustments, especially for handling /dev/shm and directory ownership issues. Based on user findings:
For more implementation details and example configurations, see the discussion at Running Frigate as a non-root user in Docker(1). 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
Are you mapping /dev/shm in the volume? Please don't do this.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
I was searching around and it doesn’t appear that many have setup frigate in a docker container to run as non root. I found one other that seemed to have done it but I was unclear on their pathway.
I seem to be having the issue where it gets stuck on:
chown: changing ownership of '/dev/shm/logs/frigate': Operation not permitted
chown: changing ownership of '/dev/shm/logs/go2rtc': Operation not permitted
chown: changing ownership of '/dev/shm/logs/nginx': Operation not permitted
chown: changing ownership of '/dev/shm/logs/certsync': Operation not permitted
I gather that these are the temp files that frigate creates on start with RAM.
I’ve setup the user in ACL to RW- to /dev/shm thinking that would solve it. I might have to go back to reviewing ACL controls to see how it applies to created folders.
Just wondered if anyone else had come across this or have any thoughts.
Beta Was this translation helpful? Give feedback.
All reactions