Some bugs were discovered in new multi-stage build feature, release in 17.05.
When using an image name directly in
COPY --from without defining a build stage, the data associated with that image was not properly cleaned up.
If a second was based on
scratch image, the metadata from the previous stage didn't get reset, forcing the user to clear it manually with extra commands.
Fixes for these are merged for the next release, everyone is welcomed to test it once
17.06-rc1 is out.
Work continues on making the builder dependency interface more stable. This week methods for getting access to source image were swapped out to a new version that keeps a reference to image data until build job has complete.
Merged as part of this effort:
PR for adding long-running session between daemon and cli that enables advanced features like incremental context send, build credentials from the client, ssh forwarding etc.
@simonferquel updated a grpc-only version of that interface and mostly seems that consensus was achieved for using only grpc transport. @tonistiigi finished up persistent cache layer and garbage collection for file transfers. The PR now needs to be split up because CLI has moved. Once that is done, the main PR should be ready for review early this week.
Building from git sources now allows specifying any remote ref. For example, to build a pull request from GitHub you can use:
docker build git://github.com/moby/moby#pull/32502/head.
Allow --cache-from=* (new)
If you are interested in implementing any of them, leave a comment on the specific issues.
Build secrets will be brought up again in next maintainer's meeting to evaluate how to move on with this, if any other proposals have changed the objective and if we should wait for swarm secrets to be available first.