Skip to content

Instantly share code, notes, and snippets.

@sshnaidm
Last active August 18, 2022 17:40
Show Gist options
  • Save sshnaidm/a279a6a1c887ba61fd2c5bd7c91898ee to your computer and use it in GitHub Desktop.
Save sshnaidm/a279a6a1c887ba61fd2c5bd7c91898ee to your computer and use it in GitHub Desktop.
Run NFSv4 server in Podman container
#!/bin/bash
# Run NFS server on /data
sudo podman run --rm --name nfs --privileged -v ~/tmp/nfs:/nfsshare -v ~/tmp/nfs/data:/nfsshare/data -e SHARED_DIRECTORY=/nfsshare -p 2049:2049 itsthenetwork/nfs-server-alpine:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment