github.com/leeprovoost/terraform@v0.6.10-0.20160119085442-96f3f76118e7/website/source/docs/providers/docker/r/network.html.markdown (about) 1 --- 2 layout: "docker" 3 page_title: "Docker: docker_network" 4 sidebar_current: "docs-docker-resource-network" 5 description: |- 6 Manages a Docker Network. 7 --- 8 9 # docker\_network 10 11 Manages a Docker Network. This can be used alongside 12 [docker\_container](/docs/providers/docker/r/container.html) 13 to create virtual networks within the docker environment. 14 15 ## Example Usage 16 17 ``` 18 # Find the latest Ubuntu precise image. 19 resource "docker_network" "private_network" { 20 name = "my_network" 21 } 22 23 # Access it somewhere else with ${docker_image.docker_network.name} 24 ``` 25 26 ## Argument Reference 27 28 The following arguments are supported: 29 30 * `name` - (Required, string) The name of the Docker network. 31 * `check_duplicate` - (Optional, boolean) Requests daemon to check for networks with same name. 32 * `driver` - (Optional, string) Name of the network driver to use. Defaults to `bridge` driver. 33 * `options` - (Optional, map of strings) Network specific options to be used by the drivers. 34 * `ipam_driver` - (Optional, string) Driver used by the custom IP scheme of the network. 35 * `ipam_config` - (Optional, block) Configuration of the custom IP scheme of the network. 36 37 The `ipam_config` block supports: 38 39 * `subnet` - (Optional, string) 40 * `ip_range` - (Optional, string) 41 * `gateway` - (Optional, string) 42 * `aux_address` - (Optional, map of string) 43 44 ## Attributes Reference 45 46 The following attributes are exported in addition to the above configuration: 47 48 * `id` (string) 49 * `scope` (string)