-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 multi-stage dockerfile build issue #2835
Comments
@harshadjoshi619 thanks for flagging this issue. To help debug this, can you post the entire logs from the failing run (with any sensitive info redacted), preferably running with |
I have the same problem. I found out, that kaniko deletes the docker configuration file in /root/.docker. I think it's the same issue as #2764 |
Maybe related to #2576 ? |
What progress has been made |
kaniko removes everything outside of the
as an example |
What if I set I mean how can we manage this when we need some command after the builder ? For example the So If I ignore everything with setting / what kind of issue can occurs ? Should I just change exexcutor ? Because this is kind of a real problème here that we lost the whole filesystem... Thanks ! |
Actual behavior
I am using kaniko-project/executor:v1.17.0-slim in my tekton pipeline. In case of normal dockerfiles it is working as expected but when we try with multi-stage dockerfiles it is giving me below error:
error pushing image: failed to push to destination ".../.../" UNAUTHORISED user is unauthorised to upload to ".../.../"
Expected behavior
Kaniko should upload multi-stage dockerfile image to artifactory
To Reproduce
Steps to reproduce the behavior:
Additional Information
I am already using /kaniko/.docker to store my credentials. Still facing same issue.
Kindly suggest some way to overcome this issue.
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: