Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.18.*: "ERROR: failed to solve: exit code: 1" on "syntax=docker/dockerfile:1.7-labs" line of a Dockerfile #5569

Open
dimikot opened this issue Dec 5, 2024 · 1 comment

Comments

@dimikot
Copy link

dimikot commented Dec 5, 2024

Repro:

docker buildx rm container
docker buildx create --name=container --driver=docker-container --bootstrap
cd ~
mkdir -p test
(echo "# syntax=docker/dockerfile:1.7-labs"; echo "FROM public.ecr.aws/lts/ubuntu:22.04 AS test") > test/Dockerfile
docker buildx build --builder=container --file test/Dockerfile .

Reproducible with --driver-opt="image=moby/buildkit:v0.18.1" and --driver-opt="image=moby/buildkit:v0.18.0". Works fine with --driver-opt="image=moby/buildkit:v0.17.3".

Success on 0.17.3 and failure on 0.18.0:

Image

Failure on 0.18.1:

Image

"docker-ce=5:27.3.1-1~ubuntu.24.04~noble",
"docker-ce-cli=5:27.3.1-1~ubuntu.24.04~noble",
"containerd.io=1.7.23-1",
"docker-compose-plugin=2.29.7-1~ubuntu.24.04~noble",
"docker-buildx-plugin=0.17.1-1~ubuntu.24.04~noble",

And also sysbox:
https://downloads.nestybox.com/sysbox/releases/v0.6.4/sysbox-ce_0.6.4-0.linux_$(dpkg --print-architecture).deb

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
@tonistiigi
Copy link
Member

I tested the provided steps locally and in Github codespaces and didn't reproduce in either.

@crazy-max Can you confirm?

@dimikot You could try with --buildkitd-flags '--debug' and see if there is anything interesting in daemon logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants