Docker-Compose Ignores Exposed TCP/UDP on same Port #7627
Comments
|
As a workaround, I found that if I didn't make the port specifications identical, it would accept both. In my case, I wanted both tcp and udp on port 24224, so I requested UDP for that port and TCP for a range which included it. This seems to have worked, though I confess I haven't tested it with actual code yet! |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
I don't have this issue in 1.28.6. Looks fixed. |
|
This issue has been automatically marked as not stale anymore due to the recent activity. |
|
is fixed or still happens ? , Issue can be close ? thanks |
|
I just tried it with |
|
This seems to be fixed, I also just tried on |
|
also tested on compose v2 and works as expected |
Description of the issue
Docker Compose ignore rules mapping both TCP and UDP to the same port, and does not produce an error or warning.
For example:
Results in:
Docker inspect shows:
Context information (for bug reports)
Output of
docker-compose versionOutput of
docker versionOutput of
docker-compose config(Make sure to add the relevant
-fand other flags)Steps to reproduce the issue
docker-compose upObserved result
Docker compose only maps the TCP port (or first occurrence).
Expected result
Docker Compose maps both TCP/UDP to the specified port, or produces an error message.
The text was updated successfully, but these errors were encountered: