Randy Smyth
Dabbler
- Joined
- Apr 9, 2017
- Messages
- 21
Current situation :
TrueNAS-SCALE-22.12.1
User : Dave (uid in Truenas 3000)
Also Created user nsfdcker:3001 (belongs to groups :Dave, docker)
Ubuntu VM
- so I can use Docker Setup for apps
- plex, radarr, sonarr, nextcloud, etc
- User : Dave (uid in Ubuntu VM 1000)
- Also Created user nsfdcker:3001 (belongs to groups :Dave, docker)
- group :docker(gid 999)
Folders :
Truenas/mnt/tank/data - Data folder for Media, with NFS and SMB shares
Owner : nfsdckr (uid 3001)
Group : docker (gid 999)
Truenas/mnt/tank/nfsdocker - folder for mapping each docker containers /config to, contains
Owner : nfsdckr (uid 3001)
Group : docker (gid 999)
What should the 2 folders on Truenas have set for Owner:group ?
What should docker-compose have for UID & GID ?
I have a heck of a time figuring out ownerships and permission, and I’ve made so many minor corrections to try and get all working together ive made a mess.
Mess started since I originally did all my dockers-compose files with a UID:GID of 1000:999. (This was because within the VM a ID command gave me my user as 1000 and from following videos these docker folder setups should be current user as user, and docker as group. So 1000:999)
When I then went into truenas folders and data sets, I set them also to the same 1000:999 unfortunately on truenas user 1000 is not Dave, its postgres on my system
Everything actually worked except I could not play Plex files that needed audio codecs. The codecs won’t execute with my current permissions.
What should ownership be on truenas datasets and in the docker compose if my user is a different UID number on truenas and Ubuntu ?
TrueNAS-SCALE-22.12.1
User : Dave (uid in Truenas 3000)
Also Created user nsfdcker:3001 (belongs to groups :Dave, docker)
Ubuntu VM
- so I can use Docker Setup for apps
- plex, radarr, sonarr, nextcloud, etc
- User : Dave (uid in Ubuntu VM 1000)
- Also Created user nsfdcker:3001 (belongs to groups :Dave, docker)
- group :docker(gid 999)
Folders :
Truenas/mnt/tank/data - Data folder for Media, with NFS and SMB shares
Owner : nfsdckr (uid 3001)
Group : docker (gid 999)
Truenas/mnt/tank/nfsdocker - folder for mapping each docker containers /config to, contains
Owner : nfsdckr (uid 3001)
Group : docker (gid 999)
What should the 2 folders on Truenas have set for Owner:group ?
What should docker-compose have for UID & GID ?
I have a heck of a time figuring out ownerships and permission, and I’ve made so many minor corrections to try and get all working together ive made a mess.
Mess started since I originally did all my dockers-compose files with a UID:GID of 1000:999. (This was because within the VM a ID command gave me my user as 1000 and from following videos these docker folder setups should be current user as user, and docker as group. So 1000:999)
When I then went into truenas folders and data sets, I set them also to the same 1000:999 unfortunately on truenas user 1000 is not Dave, its postgres on my system
Everything actually worked except I could not play Plex files that needed audio codecs. The codecs won’t execute with my current permissions.
What should ownership be on truenas datasets and in the docker compose if my user is a different UID number on truenas and Ubuntu ?