Publishing more than one port range with automatically assigned ports leads to port mapping conflict #8651
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Using the
--publish
flag it is possible to either specify the host port range explicitly or omit it. In the latter case the container runtime will allocate a random port range. If multiple--publish
flags are used with multiple port ranges with host port range omitted, the container fails to start.Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Container starting with two random host port ranges allocated to the container port ranges.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Reproducible with both 2.2.1 and master branch
Output of
podman info --debug
:Very likely not relevant.
Package info (e.g. output of
rpm -q podman
orapt list podman
):compiled from source and installed from kubic
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: