-
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
multi-stage error when referencing earlier stage #233
Comments
Moving it around to not be a multi-stage build works:
|
Hi @frelon , I think this is happening because we aren't replacing the base name in the last dockerfile stage (so kaniko will try to pull I'll open a PR which should hopefully fix this |
HI @priyawadhwa, great! thanks for the quick response! |
Hi @frelon, this should be fixed now. Let me know if you run into any more problems. |
I'll go ahead and close this, please open another issue if you run into anything! |
Hi @priyawadhwa I'm getting the following error with multistage builds:
Seems to have an issue maintaining the stages. Any idea what could be happening or how to troubleshoot? Dockerfile:
Been using a fairly recent build: |
Hey @MnrGreg , thanks for pointing this out! I think this issue is happening because right now kaniko is trying to get dependencies from a future stage which is also built off of a future stage (so it's breaking because the tarball of the future stage doesn't exist yet). I'll open a PR to fix this bug |
thanks for the quick turnaround @priyawadhwa. will test once merged. |
@MnrGreg this should work now, let me know if you still have any issues. |
@priyawadhwa it's working thanks. Going onto the next stage now.
|
@priyawadhwa I'm now getting a different error on the next stage (FROM build AS publish):
Should I log this under a new issue? |
@MnrGreg sure, if you could open up a new issue that would be great! |
Hi!
I get the error message UNAUTHORIZED: "authentication required"
when running kaniko with the following Dockerfile
And these commands on my local machine:
But when using docker build and docker push/run it works as expected.
The text was updated successfully, but these errors were encountered: