How can I expose UDP ports with Testcontainers? #556
|
With docker and docker-compose I can use the I haven't taken a look at the code but as Docker already has a syntax for supporting exporting UDP ports it seems like an easy fix to make this work, or is there already some kind of workaround for this? |
Answered by
cristianrgreco
Sep 29, 2025
Replies: 2 comments
|
Hi @joakimbeng, exposing UDP ports is not currently supported. It may integrate quite nicely by adding support for a string type, something like: .withExposedPorts(8080, "8125/udp", "8081/tcp")
...
container.getMappedPort("8125/udp")PR is welcome 🙂 |
0 replies
|
Available in 11.5.0. |
0 replies
Answer selected by
cristianrgreco
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Available in 11.5.0.