-
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
Kaniko builds sometimes produces broken image (doesn't happen on first build, only building w/ cache?) #1059
Comments
Similar issue with a slightly different error message on a custom image build
|
I'm getting something like this: |
This Dockerfile also fails on 0.17.1:
When I pull the generated image, it says: 0.16.0 works fine |
Same issue with yarn here which is missing after container is built, also doesn't work on 0.16.0:
|
This is most likely the same issues as #1039, can you try tags |
@cvgw, I am having the same error with kaniko:debug Tag debug-a1af057f997316bfb1c4d2d82719d78481a02a79 fixed the problem. What's the plan to push to the :debug tag? Is there a pull request I could follow? |
Yes, building an image with |
That code will get pushed with the |
closing issue as it appears to be fixed, please re-open if needed |
@cvgw
Referring to this issue and using debug-a1af057f997316bfb1c4d2d82719d78481a02a79 solved it. |
I have the same behaviour when running on kubernetes as @nomatterz when using 0.17 and latest (0.18).
Actually after a couple deployments it started breaking again. I'm back to 0.16 and after mixing some deployments it still works. |
I still got
with using debug-v0.18.0 |
Still having this issue on multi tenanted cluster running a mix of 0.17.1 and 0.19.0 |
Got this when I enabled cache use (works without it):
Is this related to this issue? I'm using https://github.com/banzaicloud/drone-kaniko, which seems to be using 0.19.0 |
Also seeing this on 0.19.0 and 0.20.0 with
It works with |
Experiencing this "only works with cache=false" with v0.19.0 as well. Going to try 0.23 when I get a chance. edit: I did not experience it with 0.23 using cache=true. edit2: not consistently working with 0.23. |
We're also experiencing the same issue with Kaniko v1.3.0
|
any update about this? Same problem using v1.3.0. and -snapshotMode=redo |
I'm experiencing this issue with
Dockerfile FROM mirror.gcr.io/library/node:12-alpine AS builder
ARG NPM_TOKEN
RUN echo "XYZ" > ~/.npmrc
WORKDIR /src
COPY .npmrc package.json package-lock.json /src/
RUN npm install
COPY . /src/
FROM mirror.gcr.io/library/node:12-alpine AS app
RUN mkdir /app && chown 1000:1000 /app
USER 1000
WORKDIR /app
COPY --from=builder /src /app/
CMD ["node","app.js"] Works like a charm the first time when the cache is empty, consistently produces broken images on subsequent runs. |
Got this issue using at the end of extraction: As others have noted, it's a rare occurrence. Rebuilding solves the issue. |
I'm using kaniko 0.17.1 on my gitlab runner (Docker 19.03.5).
This is my dockerfile:
This is the command to build the image:
The image build succeeds, but when I pull the image from my registry, I get the following error (tested on multiple machines and operating systems):
When building the image with kaniko 0.16.0, the image works as expected.
The text was updated successfully, but these errors were encountered: