-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Image is failing to build when --cache-from
flag is passed to docker build:
$ ls
Dockerfile file.txt
$ cat Dockerfile
FROM nginx:alpine
COPY file.txt /opt/
$ DOCKER_BUILDKIT=1 docker build --cache-from nginx:alpine .
[+] Building 6.8s (6/7)
=> local://context (.dockerignore) 0.0s
=> => transferring context: 02B 0.0s
=> local://dockerfile (Dockerfile) 0.0s
=> => transferring dockerfile: 81B 0.0s
=> ERROR importing cache manifest from docker.io/library/nginx:alpine 6.8s
=> local://context 0.0s
=> => transferring context: 29B 0.0s
=> docker-image://docker.io/library/nginx:alpine 0.0s
=> => resolve docker.io/library/nginx:alpine 0.0s
=> docker-image://docker.io/tonistiigi/copy:v0.1.3@sha256:e57a3b4d6240f55bac26b655d2cfb751f8b9412d6f7bb1f787e946391fb4b21b 0.0s
=> => resolve docker.io/tonistiigi/copy:v0.1.3@sha256:e57a3b4d6240f55bac26b655d2cfb751f8b9412d6f7bb1f787e946391fb4b21b 0.0s
------
> importing cache manifest from docker.io/library/nginx:alpine:
------
error on cache query: invalid build cache from docker.io/library/nginx:alpine
I am not sure should the issue be posted here or in https://github.com/docker/cli
Metadata
Metadata
Assignees
Labels
No labels