Docker for mac docker subnet6/12/2023 ![]() ![]() ( ff::1), so as to not conflict with the addresses that Docker sequentially ![]() Note that I’m using an IPv6 address from the far end of the address space Solution for my simple setup, where I want to statically configure a DNS record.ĭocker allows specifying an IPv6 address, but only when you’re using a user-defined bridge network with an IPv6 subnet carved out for the network, like so: % docker network create -subnet 2001:db8:13b:330:dd::/80 -ipv6 nginx Having addresses depend on the order in which containers come up isn’t a robust To enable IPv6, create theĬonfiguration file /etc/docker/daemon.json with the following content: ' nginxĪbove, I explained that we need to use the container’s IPv6 address directly,Īnd that the address is derived from the MAC address, which is chosen Let’s say that my provider gives me a routed IPv6 subnetĢ001:db8:13b:330::/64 and the IPv4 address 203.0.113.1. I’m using documentation-only IPs ( RFC3849Īrticle. Puzzle together from Docker’s official documentation. ![]() This article walks through the required steps, which are a bit cumbersome to Proxy to, say, a Grafana instance, which is also running Multiple virtual hosts, some of which just serve static files, while others My use-case is seemingly very simple: I want to run a webserver in a DockerĬontainer, and it should be reachable via IPv4 and IPv6.
0 Comments
Leave a Reply. |