Convert iocage to docker and keep compatiblity

I trying to convert my iocage jails to docker containers in preparation for converting from core to scale.
My current setup is TrueNAS-13.0-U6.2 with my arr apps all running as media:media id 8675309.
My directory structure is not ideal and I wouldn’t set it up this way if I were to start from scratch.
media
|–books
|–music
|–videos
|–movies
|–tvshows
All are media has the uid and gid of media:media

I created an Ubuntu VM and mounted the above directories to /data/media/{books|music|movies|tv} in the /etc/fstab with the NFS share maproot user to root.

  1. I can’t create a media user 8675309 in ubuntu as it’s out the range it accepts. My preference would be to keep my arr apps running in iocage and one at a time convert them to Ubuntu Docker containers while still having compatibility with the iocage system. Any thoughts on how to accomplish that?
  2. Similar question for nextcloud with has the user www in iocage and www-data in docker.

I have made the iocage migration in the same way (using alpine linux instead of Ubuntu… More lightweight).
As far i remember, every NFS share was mounted with root user - wheel group - access only from VM IP.
Honestly i didn’t complain about “double compatibility”, i just proceed stopping one jail at time >> going replicating data in another new dataset >> building docker yaml on the VM >> fixing stuffs and test everything was ok >> swap DNS >> start using docker version.
The only jail i decide to start from scratch was nextcloud… Take me less time this way than try fix everything (but im using It literally only to automate photos backup from phone)