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

Kaniko cannot download image via mirror #1721

Closed
Phylu opened this issue Aug 13, 2021 · 10 comments
Closed

Kaniko cannot download image via mirror #1721

Phylu opened this issue Aug 13, 2021 · 10 comments

Comments

@Phylu
Copy link
Contributor

Phylu commented Aug 13, 2021

Actual behavior

Kaniko cannot download the image via registry mirror and aborts with the following error:

$ /kaniko/executor --registry-mirror [REDACTED] --cache=true --cache-dir=/cache --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" $BUILD_ARGS
INFO[0001] Using dockerignore file: /builds/zSBJNYyW/0/applications/pentaho/.dockerignore 
INFO[0001] Retrieving image manifest openjdk:8-jre-slim-buster 
ERRO[0001] Error while retrieving image from cache: openjdk:8-jre-slim-buster strict validation requires the registry to be explicitly defined 
INFO[0001] Retrieving image manifest openjdk:8-jre-slim-buster 

Expected behavior

The build succeeds

To Reproduce
Steps to reproduce the behavior:

  1. Start the build
  2. See how the build fails

Additional Information

  • Dockerfile
FROM openjdk:8-jre-slim-buster

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
@tbnguyen1407
Copy link

Hello, ran into this issue just now with 1.7.0 release. Any update on this?

@jbub
Copy link

jbub commented Oct 20, 2021

@tbnguyen1407 probably related #1787

@nicolasjouveamue
Copy link

Hello,

Same problem here, I'm using gcr.io/kaniko-project/executor:debug to build with a private registry mirror.
GITLAB CI forces us to use the debug version (Seee https://docs.gitlab.com/ee/ci/docker/using_kaniko.html ), so I don't know how to use the 1.6 in the meantime...

@jbub
Copy link

jbub commented Oct 20, 2021

use the gcr.io/kaniko-project/executor:v1.6.0-debug image

@nicolasjouveamue
Copy link

Thanks just see that

@Phylu
Copy link
Contributor Author

Phylu commented Oct 26, 2021

It seems that the breaking commit ee31dc9 is already reverted on the master branch. @tejal29 It would be great if you can create an 1.7.1 bugfix release containing the bugfix. :)

@sylvaindd
Copy link

Same problem here, could really use a minor version here.

@Phylu
Copy link
Contributor Author

Phylu commented Nov 29, 2021

@tejal29 @dlorenc @sharifelgamal Is it possible to create a hotfix release from the current master branch? This should resolve this issue, which currently renders kaniko unusable for all our builds :(

@dlorenc
Copy link
Collaborator

dlorenc commented Nov 29, 2021

I'm no longer a maintainer here, sorry. Tejal/Sharif might be able to help.

@Phylu Phylu mentioned this issue Jan 5, 2022
@freehck
Copy link

freehck commented Apr 4, 2022

Have just checked: the problem does not exist in the release v1.8.0 anymore.

@Phylu Phylu closed this as completed Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants