provider/docker: Mount named volumes in containers

This adds support for specifying named volumes for mounting in a
`docker_container` resource.
This commit is contained in:
James Nugent 2016-01-15 21:59:33 +00:00
parent 5f2147a9d5
commit 60f008ee4a

View file

@ -107,12 +107,16 @@ the following:
* `from_container` - (Optional, string) The container where the volume is
coming from.
* `container_path` - (Optional, string) The path in the container where the
volume will be mounted.
* `host_path` - (Optional, string) The path on the host where the volume
is coming from.
* `volume_name` - (Optional, string) The name of the docker volume which
should be mounted.
* `container_path` - (Optional, string) The path in the container where the
volume will be mounted.
* `read_only` - (Optional, bool) If true, this volume will be readonly.
Defaults to false.
One of `from_container`, `host_path` or `volume_name` must be set.
## Attributes Reference