Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.08 KB

File metadata and controls

34 lines (25 loc) · 1.08 KB

NFS Driver

The NFS (Network File System) driver enables Docker volumes to be backed by NFS shares.

When a volume is created, this driver will automatically create the corresponding folder on the NFS Server and provide a mountpoint locally.

NOTE: This driver requires flock feature, so it only supports NFSv4.

Example Driver Options

{
    "address": "nfs-server.example.com",
    "remotePath": "/exported/path"
}

Driver Options

Name Type Description Default Optional
address string NFS server address false
remotePath string Remote path of NFS exported false
mountOptions list Mount options when mount NFS ["nfsvers=4","rw","noatime","rsize=8192","wsize=8192","tcp","timeo=14","sync"] true
purgeAfterDelete bool Indicates whether to purge volumes data from NFS after delete docker volume false true
mock bool Indicates whether to run in mock mode (no actual NFS mount) false true

Volume Options

Name Type Description Optional
purgeAfterDelete string Replace the purgeAfterDelete in the driver options for this volume true