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
DockerBuildImage fails with Docker 17.05 #830
Comments
Could you check how this logic is handled in docker CLI sources? We usually implement the same. |
Here's the change in builder: |
and how we could do it in backward compatible manner?..
…On 18 Apr 2017 11:58 a.m., "Dmitry Gusev" ***@***.***> wrote:
Here's the change
<moby/moby@17.03.x...17.05.x#diff-8145809cef82b62e31a5fce12cd7240aL307>
in builder:
[image: Added 'Successfully tagged']
<https://cloud.githubusercontent.com/assets/76579/25122539/f5726a48-242d-11e7-85f1-8096c715b5a3.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#830 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOIu_AfiMpNPmmIZIguxS8V51MFphq8ks5rxHstgaJpZM4M_TMn>
.
|
If I understand this right, the simplest way is probably to keep two latest lines of the output in the BuildImageResultCallback.java:31. And when time comes pick one of the two that matches the "Successfully built" pattern. What do you think? |
I think that it will fail on non-17 versions that we can't accept. And it seems that you found only daemon side, while we should check CLI code and how they handle it. |
Why would it fail if it's an additive change? Previous versions will still be able to find the "Successfully built" string in the last I'm not sure I understand what you mean by saying "how Docker CLI handles this"? |
@KostyaSha anything else I can do to get the proposed fix merged? |
* master-docker-java: (25 commits) Add some coding styles. Allow an explicit Dockerfile location string to be specified to the build command (docker-java#825) Proposed fix for docker-java#830 (docker-java#832) [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release 3.0.9 Fix test. Update CHANGELOG.md Responce may contains token. adding support for unless-stopped restart policy Generate OSGi compliant manifest (docker-java#797) exclude commons-logging since docker-java uses slf4j/logback Unable to deserialize status response from amazon ECR login Ensure FakeDockerServer is started on a random free port Fixes docker-java#807. NettyDockerCmdExecFactory ignores API version configuration [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release 3.0.8 Update CHANGELOG.md Added healthcheck support in container inspect JSON result Use TLSv2 by default rerun failing tests count to 3 ... # Conflicts: # pom.xml
@KostyaSha any chance we could get a release with this change in place? Running into more than a few hiccups because of this... |
Yes, stuck with swarm tests. Also almost ready to do swarm releases... But tests... |
Btw, does this all work fine with multi-sage builds? |
No issues that I've found thus far. What are your concerns and/or what are you thinking? |
End of build marker is xXX built/tagged multi-stage do multiple builds... |
Updated link to the change in docker (now moby) |
Also, is this a problem in the |
@KostyaSha FYI: running our |
* Proposed fix for docker-java#830 * Simplify the fix for docker-java#830
Version 17.05.0-ce-rc1-mac8 (16582)
Channel: edge
73d01bb48e
Fails with NPE (see below) although docker build itself succeeded:
As I understand the reason is that last line in the build output is now not "Successfully built", but "Successfully tagged".
Stacktrace:
The text was updated successfully, but these errors were encountered: