Working with Container Registries over IPv6
Configuring Docker daemon IPv6 networking, binding registries to IPv6 subnets, setting up dual-stack AAAA DNS resolution, and troubleshooting IPv6 pull routes.
Published on • November 18, 2026
AI Assistant

As enterprise infrastructure transitions to dual-stack IPv4/IPv6 or IPv6-only environments, container daemons and registries must support IPv6 transport.
By default, standard Docker daemon installations communicate over IPv4. When operating in modern data centers, cloud VPCs with IPv6 subnets, or edge environments, pushing and pulling container images over IPv6 requires configuring daemon routing, DNS AAAA resolution, and registry server bindings.
In this guide, we will learn how to enable IPv6 on the Docker Engine daemon, configure dual-stack registry bindings, and troubleshoot IPv6 connection failures.
Dual-Stack Registry Architecture
+-----------------------------------------------------------------------------------+
| Dual-Stack Registry Server (registry.example.com) |
+-----------------------------------------------------------------------------------+
│
├── IPv4 Address (A Record) : 192.168.1.50
└── IPv6 Address (AAAA Record): 2001:db8:85a3::8a2e:0370:7334
│
v
+-----------------------------------------------------------------------------------+
| Client Docker Daemon |
| - Queries DNS for `registry.example.com` (Receives A + AAAA records) |
| - Tries IPv6 (2001:db8...) first; falls back to IPv4 if unreachable |
+-----------------------------------------------------------------------------------+
Step 1: Enabling IPv6 in Docker Daemon (daemon.json)
To enable IPv6 networking and routing on a Docker host daemon, update /etc/docker/daemon.json:
{
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64",
"experimental": true,
"ip6tables": true
}
"ipv6": true: Enables IPv6 networking support in the Docker daemon."fixed-cidr-v6": Specifies an IPv6 subnet for default bridge containers."ip6tables": true: Instructs Docker to automatically manage IPv6 iptables firewall rules for published container ports.
Restart the Docker daemon service:
sudo systemctl restart docker
Verify IPv6 bridge interface creation:
ip -6 addr show docker0
Step 2: Binding a Self-Hosted Registry to IPv6 Interfaces
When running the official registry:2 container image on a dual-stack host, ensure NGINX or the registry container binds to IPv6 [::] in addition to IPv4 0.0.0.0:
Docker Compose Dual-Stack Binding
version: '3.8'
services:
registry:
image: registry:2
restart: always
ports:
# Binds port 5000 on BOTH IPv4 (0.0.0.0) and IPv6 ([::])
- "0.0.0.0:5000:5000"
- "[::]:5000:5000"
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /var/lib/registry
volumes:
- /opt/registry/data:/var/lib/registry
NGINX Dual-Stack Reverse Proxy (nginx.conf)
server {
# Listen on both IPv4 and IPv6 over TLS
listen 443 ssl;
listen [::]:443 ssl;
server_name registry.example.com;
ssl_certificate /etc/nginx/certs/domain.crt;
ssl_certificate_key /etc/nginx/certs/domain.key;
location /v2/ {
proxy_pass http://registry:5000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Step 3: Configuring DNS for Dual-Stack Resolution
Ensure your internal DNS server provides both A (IPv4) and AAAA (IPv6) records for your registry host:
# BIND DNS Zone File
registry.example.com. IN A 192.168.1.50
registry.example.com. IN AAAA 2001:db8:85a3::8a2e:0370:7334
Test DNS resolution from client nodes using dig:
# Verify IPv6 AAAA record resolution
dig AAAA registry.example.com +short
# Output: 2001:db8:85a3::8a2e:0370:7334
Step 4: Testing & Troubleshooting IPv6 Registry Connections
1. Test IPv6 Connectivity via curl
Use curl with the -6 flag to force IPv6 transport:
curl -6 -v https://registry.example.com/v2/
2. Verify docker push / docker pull over IPv6
If IPv6 is working properly, pulling images will route over IPv6 interfaces:
docker pull registry.example.com/my-app:v1
Common Troubleshooting Issues:
Issue A: connect: network is unreachable on IPv6
- Cause: The host machine lacks a valid global IPv6 default route (
ip -6 route). - Fix: Verify host IPv6 gateway configuration with
ping6 2001:4860:4860::8888(Google Public DNS IPv6).
Issue B: Docker ip6tables Blocking Connections
- Cause: Linux kernel missing
ip6table_filtermodule. - Fix: Load kernel module using
sudo modprobe ip6table_filter.
Summary Checklist
| Requirement | Setting |
|---|---|
| Daemon Config | "ipv6": true, "ip6tables": true in /etc/docker/daemon.json |
| Port Binding | listen [::]:443 ssl; in NGINX or -p [::]:5000:5000 in Docker |
| DNS Setup | Publish both A (IPv4) and AAAA (IPv6) records |
| Verification | curl -6 https://<registry>/v2/ |
Configuring dual-stack IPv6 support ensures your container registries remain accessible across modern enterprise and cloud-native networks.