mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-29 11:09:36 -05:00
* build: adds local check for website links * build(make): adds website lint and setup target * docs: fix spellings and hcl blocks * fix(make): phony cmd for missing targets * chore: renames website link check workflow * fix: missing workflow path * build(make): adds golangci-lint target and tool * ci: adds website lint workflow * docs(contributing): adds linter runs * chore: improves naming of workflow jobs * ci: moves website lint job * chore: switches markdown checker imagee to ghcr.io/tcort/markdown-link-check:stable
1.3 KiB
1.3 KiB
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| docker | Docker: docker_network | docs-docker-datasource-docker-network | `docker_network` provides details about a specific Docker Network. |
docker_network
Finds a specific docker network and returns information about it.
Example Usage
data "docker_network" "main" {
name = "main"
}
Argument Reference
The following arguments are supported:
name- (Optional, string) The name of the Docker network.id- (Optional, string) The id of the Docker network.
Attributes Reference
The following attributes are exported in addition to the above configuration:
driver- (Optional, string) The driver of the Docker network. Possible values arebridge,host,overlay,macvlan. See [docker docs][networkdocs] for more details.options- (Optional, map) Only available with bridge networks. See [docker docs][bridgeoptionsdocs] for more details.internal(Optional, bool) Boolean flag for whether the network is internal.ipam_config(Optional, map) See IPAM below for details.scope(Optional, string) Scope of the network. One ofswarm,global, orlocal.
[networkdocs] https://docs.docker.com/network/#network-drivers [bridgeoptionsdocs] https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options