-
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
Pulling from insecure registry with skip tls verify fails with 0.15.0 #925
Comments
Hi @cchanley2003 I wasn't able to repro this after a quick test using the
Any thoughts on what steps I might be missing to repro? |
Hmm, trying the same build again without "--insecure", "--insecure-pull", "--skip-tls-verify" didn't raise any errors so I'm guessing this registry isn't a good example for whatever reason |
I am home for the holidays so have limited ability to test this week. We are using nexus as our docker repo if that helps any. I can potentially provide some simple steps (4-5) to get that started from scratch. |
Was able to repro after setting up a custom hostname for my registry
|
Could you explain how do you setup up a custom hostname for registry |
Actual behavior
Latest release seems to have broken insecure pull. Getting the following errors (I have replaced the hostname/port of my insecure registry with nexus):
INFO[0000] Resolved base name nexus/centos-jdk:7-11 to nexus/centos-jdk:7-11
INFO[0000] Resolved base name nexus/centos-jdk:7-11 to nexus/centos-jdk:7-11
INFO[0000] Retrieving image manifest nexus/centos-jdk:7-11
ERRO[0000] Error while retrieving image from cache: nexus/centos-jdk:7-11 Get https:/nexus/v2/: http: server gave HTTP response to HTTPS client
INFO[0000] Image nexus/centos-jdk:7-11 not found in cache
INFO[0000] Retrieving image manifest nexus/centos-jdk:7-11
error building image: Get https://nexus/v2/: http: server gave HTTP response to HTTPS client
Expected behavior
Expect it to work like kaniko 0.14.0 where it successfully pulls the image to build. If I replace build image with gcr.io/kaniko-project/executor:debug-v0.14.0 works
To Reproduce
Steps to reproduce the behavior:
The dockerfile doesn't seem to matter, it is all about the registry in the FROM statement
gcr.io/kaniko-project/executor:v0.15.0 or gcr.io/kaniko-project/executor:debug-v0.15.0
"-f", "Dockerfile",
"-c", "/build",
"--insecure", "--insecure-pull", "--skip-tls-verify",
"--destination=nexus/cotext/registry:tag
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: