As part of our introduction to self-service publishing in the Terraform Registry, this copy of the provider has been archived, and ownership has been transferred to active maintainers in the community. Please see the new location on the Terraform Registry: https://registry.terraform.io/providers/kreuzwerker/docker/latest
The network_data attribute provides ipv6_address, ipv6_gateway properties to access.
Actual Behavior
The network_data attribute provides only IPv4 related data, regardless of whether the container is IPv6 enabled.
Steps to Reproduce
Enable IPv6 within the docker daemon on the target machine. This can be achieved by adding configuration similar to the below to /etc/docker/daemon.json. The docker daemon will need to be restarted on the target machine.
The docker container will have an IPv6 address assigned by Docker, though it will be inaccessible from Terraform attributes. docker inspect [container_id] may be performed on the target machine as a means of verifying this.
Important Factoids
I'm aware one can statically assign IPv6 addresses to containers, and this could be used as a workaround of sorts. However, I'm specifically interested in leveraging Docker's ability to assign addresses within the subnet automatically, to minimise manual effort.
Terraform Version
Terraform v0.12.24
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The
network_data
attribute providesipv6_address
,ipv6_gateway
properties to access.Actual Behavior
The
network_data
attribute provides only IPv4 related data, regardless of whether the container is IPv6 enabled.Steps to Reproduce
/etc/docker/daemon.json
. The docker daemon will need to be restarted on the target machine.terraform apply
with the configuration abovedocker inspect [container_id]
may be performed on the target machine as a means of verifying this.Important Factoids
I'm aware one can statically assign IPv6 addresses to containers, and this could be used as a workaround of sorts. However, I'm specifically interested in leveraging Docker's ability to assign addresses within the subnet automatically, to minimise manual effort.