NFS搭建

 

server

vim /etc/exports
/var/lib/docker/volumes hostname(rw,async,insecure,anonuid=1000,anongid=1000,no_root_squash)

systemctl enable rpcbind
systemctl start rpcbind
systemctl enable nfs-server
systemctl start nfs-server

client

vim /etc/fstab

175.24.130.223:/var/lib/docker/volumes /var/lib/docker/volumes nfs defaluts 0 0

mount -a