Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually map exposed ports for HTTP client #531

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

Chrisss93
Copy link
Contributor

When switching from the Cli client to the Http client I noticed that the expose_ports of my Image were no longer dynamically mapping to free ports on the docker daemon's host. It seems like this is a gap to fill as a user might want a specific container port (that the image manifest may or may not have an EXPOSE layer for) mapped to a free port on the daemon host.

@Chrisss93
Copy link
Contributor Author

Hi @thomaseizinger , if you have a free moment, could you let me know if this is a change that might be useful for the experimental client? Many thanks!

Copy link
Collaborator

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an oversight yes, thanks for addressing it. One question.

testcontainers/src/clients/http.rs Outdated Show resolved Hide resolved
@thomaseizinger thomaseizinger changed the title http api maps specifically exposed ports Actually map exposed ports for HTTP client Nov 13, 2023
@thomaseizinger
Copy link
Collaborator

thomaseizinger commented Nov 13, 2023

Thanks! Can you deal with the CI failures please?

@thomaseizinger
Copy link
Collaborator

Still some failures unfortunately.

@thomaseizinger thomaseizinger added this pull request to the merge queue Nov 21, 2023
Merged via the queue into testcontainers:dev with commit 7c0280d Nov 21, 2023
7 checks passed
@Chrisss93 Chrisss93 deleted the more-bollard branch November 21, 2023 16:52
@github-actions github-actions bot mentioned this pull request Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants