apwiggins
Dabbler
- Joined
- Dec 23, 2016
- Messages
- 41
I upgraded to TrueNAS12.0 this week. I have a docker container that uses NFS4 to connect to a TrueNAS NFS share which has a folder and files owned by nobody:nogroup. Docker container is running some form of Ubuntu bionic (18.04). The docker container is running idmapd (ps aux | grep idmapd), but sees the remote NFS share with ownerships (4294967294:4294967294). The docker container is running with explicit UID/GID of 1000:1000. On TrueNAS12.0 there is no idmapd service running. Is this expected? What's a typical workaround?
NAS=some_ip_address
NAS_FILES=/mnt/tank/myfiles
sudo docker run -d \
--name=mydockercontainer \
-e PUID=1000 \
-e PGID=1000 \
-e WEBUI_PORT=8080 \
--mount type=volume,dst=/files,volume-driver=local,volume-opt=type=nfs,\"volume-opt=o=nfsvers=4,addr=${NAS}\",volume-opt=device=:${NAS_FILES} \
etc etc