-
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
Installed binaries are missing from image #2049
Comments
I now have the Dockfile just
Log output: https://jenkins.anrisoftware.com/job/robobeerun-jenkins-helm-docker/job/Feature_4572/19/console |
Confirm related bug with missing in several cases only binaries or whole data directory in builded image in Kubernetes with Containerd runtime Versions:
Manifest to reproduce missing whole data directory in Kubernetes
Check if data missed:
BUT if remove
but if i will build something for example with yarn some files could be missing too, but not whole directory Pod log when files are missing:
Reproducing only in Kubernetes, with docker it's okay
Docker kaniko log:
docker run 127.0.0.1:5001/testrepo:test ls -laht /home/node/app
Files ok. |
Succeeded to avoid this bug with changing context dir of Kaniko executor to make it different than WORKDIR in Dockerfile Related to this issue: Working manifest:
|
Same issue here, also with nodejs alpine based image. But unfortunately changing the WORKDIR does not fix the issue Is there any plan to fix this issue? this is quite annoying and unpredictable. EDIT: I finally switched from an alpine-based to a debian-based nodejs image and it worked, but it's more a workaround than a solution... |
@achendev: Can you test with latest image on main: I think this is fixed. |
- This missing files problem should be fixed by PR GoogleContainerTools#2066.
We had the same issue too with missing binaries in Have tested with the image mentioned above Are you able to give an indication of how far away we are from getting it in a published kaniko release? |
Highlights - Installed binaries are missing from image [#2049](#2049) - proc: detect kubernetes runtime by mounts [#2054](#2054) - Fixes #2046: make target stage lookup case insensitive [#2047](#2047) - fix: Refactor LayersMap to correct old strange code behavior [#2066](#2066) - Fix missing setuid flags on COPY --from=build operation [#2089](#2089) - Fixes #2046: make target stage lookup case insensitive [#2047](#2047) - Add GitLab CI credentials helper [#2040]((#2040)) - and a number of dependency bumps
Highlights - Installed binaries are missing from image #2049 - proc: detect kubernetes runtime by mounts #2054 - Fixes #2046: make target stage lookup case insensitive #2047 - Fix: Refactor LayersMap to correct old strange code behavior #2066 - Fix missing setuid flags on COPY --from=build operation #2089 - Fixes #2046: make target stage lookup case insensitive #2047 - Add GitLab CI credentials helper #2040 - And a number of dependency bumps
Highlights - Installed binaries are missing from image #2049 - proc: detect kubernetes runtime by mounts #2054 - Fixes #2046: make target stage lookup case insensitive #2047 - Fix: Refactor LayersMap to correct old strange code behavior #2066 - Fix missing setuid flags on COPY --from=build operation #2089 - Fixes #2046: make target stage lookup case insensitive #2047 - Add GitLab CI credentials helper #2040 - And a number of dependency bumps
Highlights - Installed binaries are missing from image #2049 - proc: detect kubernetes runtime by mounts #2054 - Fixes #2046: make target stage lookup case insensitive #2047 - Fix: Refactor LayersMap to correct old strange code behavior #2066 - Fix missing setuid flags on COPY --from=build operation #2089 - Fixes #2046: make target stage lookup case insensitive #2047 - Add GitLab CI credentials helper #2040 - And a number of dependency bumps
Actual behavior
Binaries are missing from
/usr/bin
Expected behavior
ssh-agent
,git
,gpg
, etc. are all present in/usr/bin
To Reproduce
Additional Information
--cache
flagHere is the log output that clearly shows the binaries installed on the last layer:
But if I try to run the image the binaries are no longer there:
The text was updated successfully, but these errors were encountered: