Skip to content

Clarify usage of host port exporting#3421

Merged
bsideup merged 1 commit intotestcontainers:masterfrom
alxgrk:patch-1
Feb 6, 2021
Merged

Clarify usage of host port exporting#3421
bsideup merged 1 commit intotestcontainers:masterfrom
alxgrk:patch-1

Conversation

@alxgrk
Copy link
Copy Markdown
Contributor

@alxgrk alxgrk commented Nov 1, 2020

Hi there,

I'm really glad, I found Testcontainers nice feature of exposing a host port to the containers. However, one thing I stumbled upon was the need to start the server on the host before calling Testcontainers.exposeHostPorts(hostPort). After looking at the test linked in issue #1136, I found out about this necessity, but I think it would be helpful to add this remark directly to the documentation.
What do you think about it?

Best regards
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants