#!/bin/bash #nfs_data_path="/var/lib/docker/nfs_data" nfs_data_path="/data/nfs_data" deploy_nfs_server(){ mkdir -p $nfs_data_path chmod 777 $nfs_data_path echo "${nfs_data_path} *(rw,no_root_squash,no_all_squash,sync)" >> /etc/exports systemctl restart rpcbind systemctl restart nfs-server systemctl enable rpcbind systemctl enable nfs-server } deploy_nfs_server # docker login -u admin -p V2ryStr@ngPss 10.100.2.121:8033