-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
api: remove unmapped ports from PortBindings #16818
api: remove unmapped ports from PortBindings #16818
Conversation
For some reason the DCO check is failing. Could you do a git commit -a --amend -s To see if clears up the test. |
@mheon @vrothberg @Luap99 PTAL |
b0d2fad
to
9f17ea9
Compare
I added this a while ago, according to #10777 docker displays |
I don't think that that's the case. You can see the full test here. The container is running when the host config port bindings get checked. I did not start the container in the test I added because I didn't think that it made a difference. |
Ok I see it now there are different port fileds, there is |
dce2ab5
to
c815e89
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code LGTM, can you squash your commits please?
Signed-off-by: Jakob Ahrer <[email protected]>
e387b13
to
97f63da
Compare
done 🙂 |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan, SoMuchForSubtlety The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The docker API doesn't list exposed, but unmapped ports in
HostConfig.PortBindings
. Podman lists them with a value ofnull
. This PR changes this behaviour to also omit them completely.This is required for testcontainers/testcontainers-java#6158
Does this PR introduce a user-facing change?