CircleCI Ideas

Support Docker BuildKit

As of 18.09, docker daemon supports a new features called build kit. Currently (at least on Enterprise) the daemon does not have the feature flag set to enable build kit. It would be nice if Circle would support build kit going forwards

 

https://docs.docker.com/develop/develop-images/build_enhancements/

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Apr 18 2019
  • New
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    18 Apr 17:41

    Buildkit is very nice and would certainly like to see this.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    25 Apr 17:17

     This is extremely important for my team.  Our builds are extremely slow without buildkit.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    13 Jun 14:12

    This is implemented now.  Just update your "version" to 18.09.3 in "setup_remote_docker" and specify "DOCKER_BUILDKIT" environment variable set to "1" in your Docker build step.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    05 Aug 16:55

    I can confirm that `DOCKER_BUILDKIT` works. Successfully tried the example of [`RUN --mount=type=ssh`](https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/experimental.md#run---mounttypessh).