Adds ~ support and ro mode support for volumes, along with some additional validation. Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
8157f0887d
commit
07fa169fd2
3 changed files with 100 additions and 37 deletions
|
|
@ -74,14 +74,18 @@ expose:
|
|||
|
||||
### volumes
|
||||
|
||||
Mount paths as volumes, optionally specifying a path on the host machine (`HOST:CONTAINER`).
|
||||
Mount paths as volumes, optionally specifying a path on the host machine
|
||||
(`HOST:CONTAINER`), or an access mode (`HOST:CONTAINER:ro`).
|
||||
|
||||
Note: Mapping local volumes is currently unsupported on boot2docker. We recommend you use [docker-osx](https://github.com/noplay/docker-osx) if want to map local volumes.
|
||||
Note for fig on OSX: Mapping local volumes is currently unsupported on
|
||||
boot2docker. We recommend you use [docker-osx](https://github.com/noplay/docker-osx)
|
||||
if want to map local volumes on OSX.
|
||||
|
||||
```
|
||||
volumes:
|
||||
- /var/lib/mysql
|
||||
- cache/:/tmp/cache
|
||||
- ~/configs:/etc/configs/:ro
|
||||
```
|
||||
|
||||
### volumes_from
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue