Description
With docker version 20.10.6, build 370c289 observed that different port is assigned for same exposed port on ipv4 and ipv6. This is causing random failures in application with docker compose up which spawns many different apps containers
$ docker ps --format "{{.Ports}}"
0.0.0.0:49338->9999/tcp, :::49337->9999/tcp
0.0.0.0:49339->6379/tcp, :::49338->6379/tcp
0.0.0.0:49319->6379/tcp, :::49318->6379/tcp
Steps to reproduce the issue:
- Install docker version '20.10.6, build 370c289'
- use docker-compose up with multiple types of container and expose a port on each container
Describe the results you received:
- Observe post docker compose up the ipv4 and ipv6 uses different ports
Describe the results you expected:
- the 1 port should be used for both ipv4 and ipv6 ports for a exposed port
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
Output of docker info:
Additional environment details (AWS, VirtualBox, physical, etc.):
Description
With docker version
20.10.6, build 370c289observed that different port is assigned for same exposed port on ipv4 and ipv6. This is causing random failures in application with docker compose up which spawns many different apps containersSteps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version:Output of
docker info:Additional environment details (AWS, VirtualBox, physical, etc.):