this post was submitted on 10 Apr 2024
8 points (100.0% liked)
Docker
1080 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This is the most likely. You need to ensure that the volume is mounted AND that permissions are set correctly. Docker doesn't care about username. It cares about user ID. So, if the dir/file ownership and mode does not give sufficient permissions to the UID/GID of the user in the container, you'll need to correct that.
Oh, that user ID must be the answer. I was wondering what those numbers were ☺️
More digging to figure out what the appropriate user id is...
To find the numerical user ID (uid) and group ID (gid) of an account or group you can use the 'id' command such as: id root
As for which one to use on ownership and docker, that will vary widely and would require knowing more about how things are setup. I'd try to use the same one that is running the docker commands.
Thanks! Once I knew that there was such a thing, a bit of online searching got that part of it sorted. And took me into what I hope is a productive rabbit hole of permissions management. :)