-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Building a stage using image with both tag and SHA digest fails #535
Comments
The error comes from ParseReference in |
Could this be related to the failure with multi-arch images when the manifest points to tag-hash-image?
|
Any chances to get this working soon? This is a blocker for me. |
Looks like I have to learn go to get this fixed. 😁 |
Merged 😁 |
Update go-containerregistry since it can now handle image names of the format repo:tag@digest. Should fix GoogleContainerTools#535. Thanks @viceice for the fix!
Actual behavior
With a Dockerfile containing a stage like this:
Kaniko fails with the following message:
Expected behavior
Since Docker itself can build the image from the Dockerfile, I expect kaniko to be able to do the same.
To Reproduce
Steps to reproduce the behavior:
echo "FROM ubuntu:latest@sha256:868fd30a0e47b8d8ac485df174795b5e2fe8a6c8f056cc707b232d65b8a1ab68" >Dockerfile
docker run -v "$(pwd):/workspace" gcr.io/kaniko-project/executor:debug@sha256:901f53b350d0681d1fcde2654bdab048610428e1150beda51acb76fedd62ad85 --dockerfile Dockerfile --destination test
The text was updated successfully, but these errors were encountered: