5 echo " ./$(basename $0) nfs_master_ip"
9 if [ "$#" -ne 1 ]; then
10 echo "Missing NFS mater node"
18 sudo apt-get install -y nfs-common
21 sudo mkdir -p /dockerdata-nfs
23 #Mount the remote NFS directory to the local one
24 sudo mount $MASTER_IP:/dockerdata-nfs /dockerdata-nfs/
25 echo "$MASTER_IP:/dockerdata-nfsĀ /dockerdata-nfs nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0" | sudo tee -a /etc/fstab