mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Added value format description for VOLUME instruction
In the documentation was not mentioned explicitly that VOLUME value shoud be a valid JSON array. Because of this I spent time to discovering the problem with my image where I put `VOLUME ['/data']` (with single quotes). The `['/data']` mount point was parsed and mounted whole as a string without any errors and warnings. Docker-DCO-1.1-Signed-off-by: Max Shytikov <mshytikov@gmail.com> (github: mshytikov)
This commit is contained in:
parent
79dc316a86
commit
b5a37127aa
1 changed files with 3 additions and 2 deletions
|
@ -325,8 +325,9 @@ optional but default, you could use a CMD:
|
||||||
|
|
||||||
The `VOLUME` instruction will create a mount point with the specified name
|
The `VOLUME` instruction will create a mount point with the specified name
|
||||||
and mark it as holding externally mounted volumes from native host or other
|
and mark it as holding externally mounted volumes from native host or other
|
||||||
containers. For more information/examples and mounting instructions via docker
|
containers. The value can be a JSON array, `VOLUME ["/var/log/"]`, or a plain
|
||||||
client, refer to [*Share Directories via Volumes*](
|
string, `VOLUME /var/log`. For more information/examples and mounting
|
||||||
|
instructions via the Docker client, refer to [*Share Directories via Volumes*](
|
||||||
/use/working_with_volumes/#volume-def) documentation.
|
/use/working_with_volumes/#volume-def) documentation.
|
||||||
|
|
||||||
## USER
|
## USER
|
||||||
|
|
Loading…
Reference in a new issue