-
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
panic: runtime error: index out of range [0] with length 0 #1271
Comments
hmm this should not typically happen. Can you share your dockerfile. |
Yes, actually it was happen when Dockerfile
and additional |
@tejal29 should I take a look at this ? |
I also encountered the same problem.
|
maybe the following line is the reason?
In my case, |
I'm having the same problem. Using ARG reference in multi-stage seems to be the problem:
Dockerfile example:
Log: It would be very helpful if this could be fixed, since this seems to be the easiest solution to setup hardened production images as well as comprehensive debugging images with just one Dockerfile! |
Sorry to say this, but in my case it was not a problem of Kaniko! I just did not properly specify the ARG in Dockerfile! |
I encountered the same problem as well. In my case the problem was the FROM nginx as nginx A workaround that helped in my case was to use a tagged image: FROM nginx:latest as nginx |
I have the same problem. |
is this still an issue? I'm happy to work on it |
It is still happening.
kaniko fails with this error. But this line:
works fine |
I'm still seeing this issue, even without multistage build.
|
Reproductible with : |
Need to check slice size
https://github.com/GoogleContainerTools/kaniko/blob/master/pkg/executor/build.go#L516
The text was updated successfully, but these errors were encountered: