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

Fixed value for missing host port for newer docker desktop versions #2869

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bentheiii
Copy link

fixes #2792
In newer Docker Clients on Windows, sending a blank host port will result in an unassigned port. This fix will change None ports to 0 to fix that.

Signed-off-by: Ben Avrahami <avrahami.ben@gmail.com>
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.

dockerClient.containers.create(..., ports={...: None}) does not work in docker client 3.2.0 and upwards
1 participant