mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-20 13:42:56 -05:00
Merge branch 'docker_network' of https://github.com/ColinHebert/terraform into ColinHebert-docker_network
This commit is contained in:
commit
894ae56e51
2 changed files with 50 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ The following arguments are supported:
|
|||
* `log_opts` - (Optional) Key/value pairs to use as options for the logging
|
||||
driver.
|
||||
* `network_mode` - (Optional) Network mode of the container.
|
||||
* `networks` - (Optional, set of strings) Id of the networks in which the container is.
|
||||
|
||||
<a id="ports"></a>
|
||||
## Ports
|
||||
|
|
|
|||
49
r/network.html.markdown
Normal file
49
r/network.html.markdown
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
layout: "docker"
|
||||
page_title: "Docker: docker_network"
|
||||
sidebar_current: "docs-docker-resource-network"
|
||||
description: |-
|
||||
Manages a Docker Network.
|
||||
---
|
||||
|
||||
# docker\_network
|
||||
|
||||
Manages a Docker Network. This can be used alongside
|
||||
[docker\_container](/docs/providers/docker/r/container.html)
|
||||
to create virtual networks within the docker environment.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
# Find the latest Ubuntu precise image.
|
||||
resource "docker_network" "private_network" {
|
||||
name = "my_network"
|
||||
}
|
||||
|
||||
# Access it somewhere else with ${docker_image.docker_network.name}
|
||||
```
|
||||
|
||||
## Argument Reference
|
||||
|
||||
The following arguments are supported:
|
||||
|
||||
* `name` - (Required, string) The name of the Docker network.
|
||||
* `check_duplicate` - (Optional, boolean) Requests daemon to check for networks with same name.
|
||||
* `driver` - (Optional, string) Name of the network driver to use. Defaults to `bridge` driver.
|
||||
* `options` - (Optional, map of strings) Network specific options to be used by the drivers.
|
||||
* `ipam_driver` - (Optional, string) Driver used by the custom IP scheme of the network.
|
||||
* `ipam_config` - (Optional, block) Configuration of the custom IP scheme of the network.
|
||||
|
||||
The `ipam_config` block supports:
|
||||
|
||||
* `subnet` - (Optional, string)
|
||||
* `ip_range` - (Optional, string)
|
||||
* `gateway` - (Optional, string)
|
||||
* `aux_address` - (Optional, map of string)
|
||||
|
||||
## Attributes Reference
|
||||
|
||||
The following attributes are exported in addition to the above configuration:
|
||||
|
||||
* `id` (string)
|
||||
* `scope` (string)
|
||||
Loading…
Reference in a new issue