#298 netbox container PermissionError: [Errno 13] Permission denied: '/etc/netbox/config/' #447
-
|
Ubuntu 20.04.2 LTS, no SELinux this happens on a fresh install Does this look correct? I tried deleting all volumes but this is still failing on newly created volumes I wonder if this is related to apparmor/selinux, related report https://www.linuxquestions.org/questions/linux-containers-122/netbox-docker-container-errors-with-selinux-4175649916/
https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label If I comment out |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I also experienced this. In my case, it was a problem with my The Netbox container mounts some directories from the checked-out git repository ( So you either need to adjust the permissions of those directories/files to be world accessible/readable or run Netbox with the same UID as the user who owns the files on the host |
Beta Was this translation helpful? Give feedback.
I also experienced this. In my case, it was a problem with my
umasksetting (077).The Netbox container mounts some directories from the checked-out git repository (
startup_scripts,initializers,configuration,reports,scripts), those appear in the container with the permissions from the host (uid 1000, gid 1000, permissions: 0{6|7}00).So you either need to adjust the permissions of those directories/files to be world accessible/readable or run Netbox with the same UID as the user who owns the files on the host