Comments on: Mount a TrueNAS or FreeNAS Share to a Docker Host https://www.truenas.com/blog/truenas-freenas-share-docker/ Fri, 16 Feb 2024 19:49:27 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Josh J https://www.truenas.com/blog/truenas-freenas-share-docker/#comment-5751 Fri, 10 Apr 2020 07:05:02 +0000 https://www.ixsystems.com/?p=65308#comment-5751 Also for most you need to setup the NFS share with mapalluser to root and mappallgroup to wheel for handling containers that do not run as root

]]>
By: Joe https://www.truenas.com/blog/truenas-freenas-share-docker/#comment-5750 Thu, 03 Oct 2019 07:01:14 +0000 https://www.ixsystems.com/?p=65308#comment-5750 In reply to Cédrik.

Also great advice, thanks for the comment!

]]>
By: Cédrik https://www.truenas.com/blog/truenas-freenas-share-docker/#comment-5749 Sun, 18 Aug 2019 16:33:44 +0000 https://www.ixsystems.com/?p=65308#comment-5749 You could also mount the NFS share as a Docker volume. E.g. in your docker-compose.yml (v2 syntax):
volumes:
my-docker-shared-volume:
driver: local
driver_opts:
type: “nfs4”
# replace “ro” with “rw” should you wish to write! 😉
o: “addr=192.0.2.1,ro”
device: “:/mnt/tank/my_freenas_shared_volume”

]]>