Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

NFS server image for docker

Docker Hub

Wake the server up

% docker run \
  -it --rm --privileged \
  -p 111:111/tcp -p 111:111/udp \
  -p 2049:2049/tcp -p 2049:2049/udp \
  --name nfs-server \

Mount from client

% sudo docker inspect \
  --format "{{.NetworkSettings.IPAddress}}" \
# Get IP Address of the nfs-server docker container

% mkdir foobar
% sudo mount \
  -t nfs \
  -o nfsvers=4,proto=tcp \
  ${IPAddress}:/ \
You can’t perform that action at this time.