mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-02 21:09:36 -05:00
provider/docker: Add hosts parameter for containers
This commit is contained in:
parent
06f89614d2
commit
ad05f3a3b5
1 changed files with 11 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ The following arguments are supported:
|
|||
kept running. If false, then as long as the container exists, Terraform
|
||||
assumes it is successful.
|
||||
* `ports` - (Optional) See [Ports](#ports) below for details.
|
||||
* `extra_hosts` - (Optional) See [Extra Hosts](#extra_hosts) below for details.
|
||||
* `privileged` - (Optional, bool) Run container in privileged mode.
|
||||
* `publish_all_ports` - (Optional, bool) Publish all ports of the container.
|
||||
* `volumes` - (Optional) See [Volumes](#volumes) below for details.
|
||||
|
|
@ -82,6 +83,16 @@ the following:
|
|||
* `protocol` - (Optional, string) Protocol that can be used over this port,
|
||||
defaults to TCP.
|
||||
|
||||
<a id="extra_hosts"></a>
|
||||
## Extra Hosts
|
||||
|
||||
`extra_hosts` is a block within the configuration that can be repeated to specify
|
||||
the extra host mappings for the container. Each `extra_hosts` block supports
|
||||
the following:
|
||||
|
||||
* `host` - (Required, int) Hostname to add.
|
||||
* `ip` - (Required, int) IP address this hostname should resolve to..
|
||||
|
||||
<a id="volumes"></a>
|
||||
## Volumes
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue