-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Using FROM <image_id>
doesn't work when using DOCKER_BUILDKIT=1
#2204
Comments
Minimal reproduction at https://github.com/bossmc/repro-buildkit-2204. System information:
|
@thaJeztah Hi any updates or information about this issue? |
Not that I'm aware of. Perhaps @crazy-max knows. |
@dautovri BuildKit needs to resolve image config to load metadata in Dockerfile frontend. I think that's why it fails because we need a valid image reference here. cc @tonistiigi |
I think in this case, the ID / |
Ah yes that's it! |
It's means we will need to make a local registry, push the image, and after that use it in FROM? |
The build works if the local image is tagged and the build references it by the tag - that doesn't create any special registry/"distribution digest" as far as I know though. |
Yes, buildkit looks to interpret |
Not quite. If we use shortened ID, we will get the same result.
|
That underlying behaviour is a little different - that's treating the hash as the name of an image stored on dockerhub and guessing |
Hi, we've come to realize that |
If you have a
Dockerfile
of the form:Then
docker build
fails but only if buildkit is in use (tested withDOCKER_BUILDKIT=1
as well asdocker buildx
):vs
The text was updated successfully, but these errors were encountered: