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

2022-01-25 Thread Andrej Shadura

Hi,

On Fri, 20 Aug 2021 16:45:03 +0200 Songbo Wang  wrote:

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.


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


--
Cheers,
  Andrej



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

2021-08-20 Thread Songbo Wang

Package: docker-compose
Version: 1.25.0-1
Severity: important
Tags: ipv6

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

-- System Information:
Debian Release: 11.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/2 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages docker-compose depends on:
ii  python3  3.9.2-3
ii  python3-cached-property  1.5.2-1
ii  python3-distutils3.9.2-1
ii  python3-docker   4.1.0-1.2
ii  python3-dockerpty0.4.1-2
ii  python3-docopt   0.6.2-3
ii  python3-jsonschema   3.2.0-3
ii  python3-requests 2.25.1+dfsg-2
ii  python3-six  1.16.0-2
ii  python3-texttable1.6.3-2
ii  python3-websocket0.57.0-1
ii  python3-yaml 5.3.1-5

Versions of packages docker-compose recommends:
ii  docker.io  20.10.5+dfsg1-1+b5

docker-compose suggests no packages.

-- no debconf information