Comments on How to Install NFS Client and Server on Ubuntu 20.04
Network File System or short NFS is a distributed file system protocol that allows you to mount remote directories on your server. In this tutorial, we will learn how to set up an NFS Server and how to mount NFS Shares on a client using Ubuntu 20.04.
2 Comment(s)
Comments
Hi,
I need help about Ubuntu 20.04 NFS Server ...
When Docker Swarm mount NFS Server (Ubuntu 20.04) volumes, no_root_squash option does not prevent files to be own by nobody:nogroup ...
maybe I missed an element for the configuration ...
apt install -y nfs-common nfs-kernel-serverapt install -y docker.io
docker swarm init --advertise-addr 192.168.0.28/etc/exports/volumes 192.168.0.28(rw,sync,no_root_squash,no_subtree_check) docker-comose.ymlvolumes: data: driver: local driver_opts: type: "nfs" o: "addr=192.168.0.28,nolock,soft,tcp,rw" device: ":/volumes/service/data"
services:[...] volumes: - type: volume source: "data" target: "/data" read_only: false volume: nocopy: true
root@2759ad548e43:/data # ls -latotal 32drwxr-xr-x 4 nobody nogroup 4096 Nov 9 08:09 .drwxr-xr-x 1 root root 4096 Nov 6 19:20 ..
root@2759ad548e43:/data # touch test.txttouch: cannot touch 'test.txt': Permission denied
umount: /nfs/home: no mount point specified
umount: /nfs/general: no mount point specified.
this don't work.