Permission denied writing config file - external directories (Docker rootless) #2013
-
|
Hello, I've been testing OC 4.0.0 and when I decided to move the directories from docker volumes to host directories, I'm getting a permission denied while creating config files, on container launch. Docker is running rootless, as uid:gid 1000:1000 (matches the compose file). The directories were created by user 1000 and have rwx permissions for that user. I tried starting anew, but it still does the same. If I comment out the external storage lines, it'll start perfectly fine on the internal volumes. What might be wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
That is a problem of docker. Mounted config files are always mounted as root. Maybe that becomes a problem when running docker rootless. |
Beta Was this translation helpful? Give feedback.
-
|
I had a suspicion it was related to Docker and not Opencloud. |
Beta Was this translation helpful? Give feedback.
I'm currently not sure if rootless docker works as expected with the UID/GID mapping as any UID/GID inside the container is a high digit number on the host itself(usually 100000+). In my test setup I removed the "user" flag from my compose file and mounted the config and data folder as …