IP of NFS server: 192.168.123.244
dnf install nfs-utils
systemctl enable --now nfs-server
Install package nfs-utils for CentOS, Fedora and Redhat or install nfs-common for Ubuntu or Debian.
mkdir /opt/{share,vol01,vol02}
[root@centos8 ~]# cat /etc/exports
/opt/share 192.168.123.0/24(rw,sync)
/opt/vol01 192.168.123.0/24(rw,sync)
/opt/vol02 192.168.123.0/24(rw,sync)
exportfs -ra
exportfs -v
exportfs -s
firewall-cmd --new-zone=nfs --permanent
firewall-cmd --zone=nfs --add-service=nfs --permanent
firewall-cmd --zone=nfs --add-source=192.168.123.0/24 --permanent
firewall-cmd --reload
buildah bud --layers=true -t uploads:latest .
mkdir {uploads,upload}
podman run -it --rm --name uploads \
-v ${PWD}/upload:/upload \
-v ${PWD}/uploads:/uploads \
-p8000:8000 uploads:latest