-
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
Missing files in Kaniko-built image #1045
Comments
Could be related to: I had a working build by moving from AmazonLinux:2018.03 to AmazonLinux:2, but pip3 was not working with that image. Yesterday I fixed the issue with pip3, and the images didn't work anymore (build successful, but pulling images doesn't work). It's always something different, sometimes it is git, or zip, or java ... tried different approaches including not uninstalling installed software. |
Also getting this on a go build with 0.17.1. error building image: error building stage: failed to take snapshot: unable to add file /root/.cache/go-build/f6/.wh.f6274bb3f6af4a08a241f2da8b1723712d7eb3e2038fa9bf9fc2f5958addf420-a to layered map: error creating hash for /root/.cache/go-build/f6/.wh.f6274bb3f6af4a08a241f2da8b1723712d7eb3e2038fa9bf9fc2f5958addf420-a: lstat /root/.cache/go-build/f6/.wh.f6274bb3f6af4a08a241f2da8b1723712d7eb3e2038fa9bf9fc2f5958addf420-a: no such file or directory |
Thanks @HaehnleinMar Sorry for the regression. Please use |
Thank you @tejal29 for that suggestion. Using |
guys I need an equivalent version of v0.16.0 for executor:debug. What would that be? |
@binnythomas-1989 please use the tag |
debug-v0.16.0 |
I verfied this on latest image
|
Facing the same issue with build image using
Workaround - run |
And another fail on pulling image:
Was successfully build with existing cache. I'll try to figure out how to stable reproduce this error. |
Same issue with debug-v0.19.0 |
Is this issue fixed? I think I'm facing a variant of this with the latest The weird thing for me is that the image functions fine when I run it locally, but when I run it via gitlab-runner, I see the following issue:
|
When running microdnf update on the ubi8-minimal based image, I'm getting the error: ERRO[0036] couldn't eval /usr/lib/libssl.so.1.1 with link /usr/lib/libssl.so.1.1 I don't know if it's related, but at the beginning, I'm having error E0601 07:08:11.044500 113 aws_credentials.go:77] while getting AWS credentials NoCredentialProviders: no valid providers in chain. Deprecated. It is both with 'latest' and with 'v0.16.0' kaniko images. |
The problem has to do with symbolic links, as has been written here and elsewhere a couple of times.
Inside the lib folders are links like
Inside kaniko they look like this, however:
And do not work. A simple workaround is, to add the following line at the top of the Dockerfile for ubi8 derived images:
With this, the kaniko build succeeds! |
Similar problem with postgres package, kaniko 0.17.1 produces invalid image. 0.18.0 is OK 🎉 |
This is happening to us too. An empty folder created in a RUN instruction using
All folders are created successfully but |
@mareksuscak That is to be expected, see the --ignore-var-run option, it defaults to true. |
Actual behavior
When building from Red Hat's UBI 8 and installing nginx a library is missing in the resulting image preventing docker from pulling it.
Expected behavior
The files should be present
To Reproduce
Additional Information
Build Context:
Dockerfile
nginx.repo
Kaniko Image (fully qualified with digest)
gcr.io/kaniko-project/executor:debug@sha256:025bd79d3e0699b5f59142b03f7e66916980bd0e32653b9c7e21b561d4e538c3
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: