mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-06-11 09:50:03 -04:00
* Initial plan * feat(network): expose attached containers in data source Agent-Logs-Url: https://github.com/kreuzwerker/terraform-provider-docker/sessions/a044c299-a0c1-409e-87ff-ec55628948bd Co-authored-by: Junkern <3775779+Junkern@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Junkern <3775779+Junkern@users.noreply.github.com>
1.8 KiB
1.8 KiB
| page_title | subcategory | description |
|---|---|---|
| docker_network Data Source - terraform-provider-docker | docker_network provides details about a specific Docker Network. |
docker_network (Data Source)
docker_network provides details about a specific Docker Network.
Example Usage
data "docker_network" "main" {
name = "main"
}
Schema
Required
name(String) The name of the Docker network.
Read-Only
containers(List of Object) Containers attached to the network. (see below for nested schema)driver(String) The driver of the Docker network. Possible values arebridge,host,overlay,macvlan. See network docs for more details.id(String) The ID of this resource.internal(Boolean) Iftrue, the network is internal.ipam_config(Set of Object) The IPAM configuration options (see below for nested schema)options(Map of String) Only available with bridge networks. See bridge options docs for more details.scope(String) Scope of the network. One ofswarm,global, orlocal.
Nested Schema for containers
Read-Only:
container_id(String)endpoint_id(String)ipv4_address(String)ipv6_address(String)mac_address(String)name(String)
Nested Schema for ipam_config
Read-Only:
aux_address(Map of String)gateway(String)ip_range(String)subnet(String)