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
PublishAllPorts behavior seems to have changed in remote API 1.14 #7869
Comments
I am also having trouble with the PortBindings option not exposing any ports. |
This is also probably the cause of jenkinsci/docker-plugin#90 |
Same problem in Shipyard |
ping @tiborvass Do you mind looking into this tomorrow if it is a regression? |
@crosbymichael of course. Thanks! |
I can recreate, looking into it |
CORRECTION: I cannot reproduce, sorry for the confusion. I tested with v1.11, v1.12, v1.13, and v1.14 of the API. Then tested building and creating/starting an image on docker version 1.1.2, and upgrading docker tp 1.2.0 and running Can you give some insight into the requests you are passing to the API for build, create, start, etc. Thanks! |
@LK4D4 @erikh @unclejack if any of you can reproduce this please let us know! |
In the jenkins plugin case, it appears to be using PortSpecs instead of ExposedPorts. The docker API is not well documented IMO, so I am not completely sure if those options are trying to accomplish the same thing. |
I am seeing behaviour where:
With any of the following
Results in:
|
@thomassuckow can you please paste the output of |
I am still trying to track down the issue. I am working to recreate the (mostly) exact request as the docker client sends it (which works). Docker client sends (works):
My modified jDocker library sends (does not work):
|
The issue is |
Confirmed that this is also causing #6231. FWIW, this is easy to reproduce using the docker-java API binding. For us this is a breaking issue so we've backed our Docker installation off to 1.1.1. |
With docker 1.11, a POST to /containers/$id/start with {"PublishAllPorts": true} would start the container and bind exposed ports as expected.
After upgrading to 1.12, the container no longer binds any ports.
API docs show no changes in this area - did something change, or is this a regression?
The text was updated successfully, but these errors were encountered: