-
Notifications
You must be signed in to change notification settings - Fork 136
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
Unable to anonymously pull an image from ghcr.io when using BuildKit #428
Comments
Do you want to pull an existing image that was built by someone else and stored on Otherwise, in your example you need to provide the contents of the Dockerfile, either through a string, or pointing to a remote location. |
Correct, I would like to pull an existing image built by someone else when I'm building the image using buildkit. I don't want to pull images individually, but rather automatically when building the image, just like |
@fussybeaver Are you able to triage whether this is bollard's issue or if this is something on my end? I'm considering whether bollard can be used for my use-case. |
Can confirm that it doesn't work... I haven't managed to confirm if this is with all |
I have managed to build a
Perhaps there's something we can change in the way credentials are seeded into the buildkit codepath to make that automatic.. although I'm not sure if there other (rate-limiting) ramifications around using a fixed username. |
+1 to this. For me it was the image Log:
|
Made a small adjustment that should mean you don't need to auth anymore.. |
The issue
My goal is to build an image using BuildKit, which depends on a public image from ghcr.io.
Dockerfile:
FROM ghcr.io/astral-sh/uv:0.2.24 as uv
Code:
Expected behavior
Since
ghcr.io/astral-sh/uv:0.2.24
is publicly accessible, I expect to be able to build my image without authenticating toghcr.io
.Observed Behavior
The build fails with the following status:
The text was updated successfully, but these errors were encountered: