-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Description
Description
Previously these settings worked in my docker compose file:
my-service:
ports:
- "127.0.0.1:3000:3000"
- "[::1]:3000:3000"
Now after updating docker, I get and error:
Error response from daemon: driver failed programming external connectivity on endpoint my-service (...): NAT is disabled, omit host address in port mapping [::1]:3000:3000/tcp, or use [::]::3000 to open port 3000 for IPv6-only
host port must not be specified in mapping [::1]:3000:3000/tcp because NAT is disabled
Reproduce
Not sure exactly what are the conditions but using IPV6 loopback address in port mapping causes this for me.
Expected behavior
I would expect the configuration to still work or there should be clearer instructions how to make IPV6 loopback address in port mapping work again if the configuration is invalid.
docker version
➜ docker version
Client: Docker Engine - Community
Version: 27.0.2
API version: 1.46
Go version: go1.21.11
Git commit: 912c1dd
Built: Wed Jun 26 18:47:16 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.0.2
API version: 1.46 (minimum version 1.24)
Go version: go1.21.11
Git commit: e953d76
Built: Wed Jun 26 18:47:16 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.18
GitCommit: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
runc:
Version: 1.7.18
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info
Client: Docker Engine - Community
Version: 27.0.2
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.15.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.27.1
Path: /usr/libexec/docker/cli-plugins/docker-compose
Additional Info
Issue seems to be related to this commit:
01eecb6
Which is part of: