docker volume create --driver local --opt type=nfs --opt o=addr=10.0.0.5,rw --opt device=:/exports/data nfsvol

Category: Docker

docker volume create --driver local --opt type=nfs --opt o=addr=10.0.0.5,rw --opt device=:/exports/data nfsvol

Create a volume backed by an NFS share

Mounts an NFS export at 10.0.0.5:/exports/data as the volume nfsvol, letting containers share storage across hosts. The local driver mounts the device with the options given by o=, here read-write. Requires the NFS client on the Docker host.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.