Skip to content

Instantly share code, notes, and snippets.

@fjctp
Last active September 23, 2019 23:48
Show Gist options
  • Save fjctp/3d36e26686d55931a763c625a4f8defc to your computer and use it in GitHub Desktop.
Save fjctp/3d36e26686d55931a763c625a4f8defc to your computer and use it in GitHub Desktop.
docker volume nfs4
volumes:
example_vol:
driver_opts:
type: "nfs4"
o: "addr=SERVER_IP,nolock,hard,rw"
device: ":/path/to/dir"
docker volume create -d local \
-o type=nfs4 \
-o o=addr=SERVER_IP,hard,nolock,rw \
-o device=:/path/to/dir \
example_vol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment