After the upgrade https://changelog.travis-ci.com/xenial-build-environment-updates-95336
all docker builds stopped working at once, as we have to use buildkit to passthrough the ssh-agent.
How to reproduce:
- Create the Dockerfile
# syntax=docker/dockerfile:1.0.0-experimental
FROM node:8-alpine
- Try to build it with
DOCKER_BUILDKIT=1 docker build -t test .
- Get a very subtle error
#3 resolve image config for docker.io/docker/dockerfile@sha256:d2d402b6fa1d...
#3 digest: sha256:225ddc2c45be66b63dfcfb873b0d39a2fe4d12bf16cbd5a14f411b724fb674c8
#3 name: "resolve image config for docker.io/docker/dockerfile@sha256:d2d402b6fa1dae752f8c688d72066a912d7042cc1727213f7990cdb57f60df0c"
#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: "docker.io/docker/dockerfile@sha256:d2d402b6fa1dae752f8c688d72066a912d7042cc1727213f7990cdb57f60df0c not found"
docker.io/docker/dockerfile@sha256:d2d402b6fa1dae752f8c688d72066a912d7042cc1727213f7990cdb57f60df0c not found
Solution: Removing the gcr.io from mirrors helps. Just do echo "{}" > /etc/docker/daemon.json
.
Here is the relevant issue: https://github.com/moby/buildkit/issues/606#issuecomment-453959632