Docker builds are broken if buildkit is used (DOCKER_BUILDKIT=1)


After the upgrade
all docker builds stopped working at once, as we have to use buildkit to passthrough the ssh-agent.

How to reproduce:

  1. Create the Dockerfile
# syntax=docker/dockerfile:1.0.0-experimental
FROM node:8-alpine
  1. Try to build it with DOCKER_BUILDKIT=1 docker build -t test .
  2. Get a very subtle error
#3 resolve image config for
#3       digest: sha256:225ddc2c45be66b63dfcfb873b0d39a2fe4d12bf16cbd5a14f411b724fb674c8
#3         name: "resolve image config for"
#3      started: 2019-04-11 23:13:58.29101229 +0000 UTC
#3    completed: 2019-04-11 23:13:58.581553479 +0000 UTC
#3     duration: 290.541189ms
#3        error: " not found" not found

Solution: Removing the from mirrors helps. Just do echo "{}" > /etc/docker/daemon.json.

Here is the relevant issue: