Skip to content

Commit fe3ec3f

Browse files
bfirshthaJeztah
authored andcommitted
Add docs and man page entry for --volume-driver
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
1 parent 1475f56 commit fe3ec3f

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

docs/reference/commandline/create.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Creates a new container.
8383
If 'host-src' is missing, then docker creates a new volume.
8484
If neither 'rw' or 'ro' is specified then the volume is mounted
8585
in read-write mode.
86+
--volume-driver="" Optional volume driver for the container
8687
--volumes-from=[] Mount volumes from the specified container(s)
8788
-w, --workdir="" Working directory inside the container
8889

docs/reference/commandline/run.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ parent = "smn_cli"
8484
If 'host-src' is missing, then docker creates a new volume.
8585
If neither 'rw' or 'ro' is specified then the volume is mounted
8686
in read-write mode.
87+
--volume-driver="" Optional volume driver for the container
8788
--volumes-from=[] Mount volumes from the specified container(s)
8889
-w, --workdir="" Working directory inside the container
8990

man/docker-create.1.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ docker-create - Create a new container
6363
[**--ulimit**[=*[]*]]
6464
[**--uts**[=*[]*]]
6565
[**-v**|**--volume**[=*[]*]]
66+
[**--volume-driver**[=*DRIVER*]]
6667
[**--volumes-from**[=*[]*]]
6768
[**-w**|**--workdir**[=*WORKDIR*]]
6869
IMAGE [COMMAND] [ARG...]
@@ -305,6 +306,13 @@ any options, the systems uses the following options:
305306
**-v**, **--volume**=[]
306307
Bind mount a volume (e.g., from the host: -v /host:/container, from Docker: -v /container)
307308

309+
**--volume-driver**=""
310+
Optional volume driver for the container
311+
312+
If the container has a volume either from the `VOLUME` instruction in a
313+
Dockerfile or the `-v` flag, a driver can be specified to create the volumes
314+
with. See **docker-volume-create(1)** for full details.
315+
308316
**--volumes-from**=[]
309317
Mount volumes from the specified container(s)
310318

man/docker-run.1.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ docker-run - Run a command in a new container
6363
[**-t**|**--tty**[=*false*]]
6464
[**--tmpfs**[=*[CONTAINER-DIR[:<OPTIONS>]*]]
6565
[**-u**|**--user**[=*USER*]]
66-
[**-v**|**--volume**[=*[]*]]
6766
[**--ulimit**[=*[]*]]
6867
[**--uts**[=*[]*]]
68+
[**-v**|**--volume**[=*[]*]]
69+
[**--volume-driver**[=*DRIVER*]]
6970
[**--volumes-from**[=*[]*]]
7071
[**-w**|**--workdir**[=*WORKDIR*]]
7172
IMAGE [COMMAND] [ARG...]
@@ -512,6 +513,13 @@ For example, you can specify either `/foo` or `foo` for a `host-dir` value.
512513
If you supply the `/foo` value, Docker creates a bind-mount. If you supply
513514
the `foo` specification, Docker creates a named volume.
514515

516+
**--volume-driver**=""
517+
Optional volume driver for the container
518+
519+
If the container has a volume either from the `VOLUME` instruction in a
520+
Dockerfile or the `-v` flag, a driver can be specified to create the volumes
521+
with. See **docker-volume-create(1)** for full details.
522+
515523
**--volumes-from**=[]
516524
Mount volumes from the specified container(s)
517525

0 commit comments

Comments
 (0)