mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-29 01:47:33 -05:00
[ci skip]: Updates missing docs for changes of #147
This commit is contained in:
parent
c56d60d30f
commit
0208605597
2 changed files with 26 additions and 1 deletions
|
|
@ -75,6 +75,8 @@ data is stored in them. See [the docker documentation][linkdoc] for more details
|
|||
kept running. If false, then as long as the container exists, Terraform
|
||||
assumes it is successful.
|
||||
* `capabilities` - (Optional, block) See [Capabilities](#capabilities) below for details.
|
||||
* `mounts` - (Optional, set of blocks) See [Mounts](#mounts) below for details.
|
||||
* `tmpfs` - (Optional, map) A map of container directories which should be replaced by `tmpfs mounts`, and their corresponding mount options.
|
||||
* `ports` - (Optional, block) See [Ports](#ports) below for details.
|
||||
* `host` - (Optional, block) See [Extra Hosts](#extra_hosts) below for
|
||||
details.
|
||||
|
|
@ -126,6 +128,29 @@ resource "docker_container" "ubuntu" {
|
|||
}
|
||||
```
|
||||
|
||||
<a id="mounts"></a>
|
||||
### Mounts
|
||||
|
||||
`mount` is a block within the configuration that can be repeated to specify
|
||||
the extra mount mappings for the container. Each `mount` block is the Specification for mounts to be added to container and
|
||||
supports the following:
|
||||
|
||||
* `target` - (Required, string) The container path.
|
||||
* `source` - (Optional, string) The mount source (e.g., a volume name, a host path)
|
||||
* `type` - (Required, string) The mount type: valid values are `bind|volume|tmpfs`.
|
||||
* `read_only` - (Optional, string) Whether the mount should be read-only
|
||||
* `bind_options` - (Optional, map) Optional configuration for the `bind` type.
|
||||
* `propagation` - (Optional, string) A propagation mode with the value.
|
||||
* `volume_options` - (Optional, map) Optional configuration for the `volume` type.
|
||||
* `no_copy` - (Optional, string) Whether to populate volume with data from the target.
|
||||
* `labels` - (Optional, map of key/value pairs) Adding labels.
|
||||
* `driver_config` - (Optional, map) The name of the driver to create the volume.
|
||||
* `name` - (Optional, string) The name of the driver to create the volume.
|
||||
* `options` - (Optional, map of key/value pairs) Options for the driver.
|
||||
* `tmpfs_options` - (Optional, map) Optional configuration for the `tmpf` type.
|
||||
* `size_bytes` - (Optional, int) The size for the tmpfs mount in bytes.
|
||||
* `mode` - (Optional, int) The permission mode for the tmpfs mount in an integer.
|
||||
|
||||
<a id="ports"></a>
|
||||
### Ports
|
||||
|
||||
|
|
|
|||
|
|
@ -352,7 +352,7 @@ the extra mount mappings for the container. Each `mount` block is the Specificat
|
|||
the following:
|
||||
|
||||
* `target` - (Required, string) The container path.
|
||||
* `source` - (Required, string) The mount source (e.g., a volume name, a host path)
|
||||
* `source` - (Optional, string) The mount source (e.g., a volume name, a host path)
|
||||
* `type` - (Required, string) The mount type: valid values are `bind|volume|tmpfs`.
|
||||
* `read_only` - (Optional, string) Whether the mount should be read-only
|
||||
* `bind_options` - (Optional, map) Optional configuration for the `bind` type.
|
||||
|
|
|
|||
Loading…
Reference in a new issue