Last active
September 23, 2019 23:48
-
-
Save fjctp/3d36e26686d55931a763c625a4f8defc to your computer and use it in GitHub Desktop.
docker volume nfs4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
volumes: | |
example_vol: | |
driver_opts: | |
type: "nfs4" | |
o: "addr=SERVER_IP,nolock,hard,rw" | |
device: ":/path/to/dir" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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