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? |
Beta Was this translation helpful? Give feedback.
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 🙂 |
Beta Was this translation helpful? Give feedback.
-
Available in 11.5.0. |
Beta Was this translation helpful? Give feedback.
Available in 11.5.0.