#992587 docker-compose: Fails to bind host's IPv6 ports

Package:
docker-compose
Source:
docker-compose
Submitter:
Songbo Wang
Date:
2022-04-18 18:45:20 UTC
Severity:
normal
Tags:
#992587#5
Date:
2021-08-20 14:45:03 UTC
From:
To:
Dear Maintainer,

I ran "docker-compose up" with the following docker-compose.yml

version: '3'

services:
   nginx:
     image: nginx
     ports:
       - 0.0.0.0:8080:80
       - :::8080:80

and found no host IPv6 port was bound to the container, while the IPv4
binding was successful.

I ran a docker engine of version 20.10.5+dfsg1, and successfully bound
host's IPv6 port to the container by the single command "docker run -p
8080:80 nginx", so I believe this is a compose-specific problem.

Besides I also have tested IPv6 port binding for sid (1.27.4-1), and
found the problems persisted.

Cheers,
Songbo Wang

#992587#10
Date:
2022-01-25 18:26:42 UTC
From:
To:
Hi,

Can you try again with IPv6 port only? That should actually bind both
IPv4 and IPv6 ports.