Closed pschulten closed 2 years ago
I circumvented my issue by using my own graalvm builder image. So this could be closed unless you want to work on the nil pointer
have the same issues, but on 1.6.0 kaniko executor
but i use own kaniko docker image, on alpine, that copy binaries from official kaniko image
in official image (from scratch) issues not repeated, but on my alpine image with kaniko binaries repeated
FROM alpine:3.13
...
COPY --from=gcr.io/kaniko-project/executor:v1.6.0 /kaniko/executor /kaniko/executor
COPY --from=gcr.io/kaniko-project/warmer:v1.6.0 /kaniko/warmer /kaniko/warmer
+1 I am getting the same error both with kaniko v1.5.2 and v1.6.0. @pschulten the other similar issues seem to be due to misaligned address for arm.
How did you fix it? do you have a working dockerfile?
@tejal29 any idea what the runtime panic indicates?
+1
+1
FROM gcr.io/kaniko-project/executor:latest AS kaniko
FROM centos:7
COPY --from=kaniko /kaniko /kaniko
RUN mkdir /workspace /cache -p
ENV PATH=$PATH:/kaniko \
SSL_CERT_DIR=/kaniko/ssl/certs \
DOCKER_CONFIG=/kaniko/.docker/
+1 I am getting the same error Kaniko version : v1.6.0 context: 216.3MB docker build success. run ok at kaniko v0.14.0
I don't know the root cause and I haven't dig into it, but the workaround based on @aokulovx5 suggestion, use gcr.io/kaniko-project/executor:v1.6.0-debug
should work at least on GCB.
v1.6.0 does not work on amazonlinux:latest. :(
I also experiment such an error using RHEL8
image on k8s. I can reproduce it easily using kind tool
See my ticket: https://github.com/redhat-buildpacks/poc/issues/9 and comment: https://github.com/redhat-buildpacks/poc/issues/9#issuecomment-974848272
Just want to let others know that by adding the following command to the dockerfile I was able to avoid the error in alpine.
rm /var/spool/mail
Just want to let others know that by adding the following command to the dockerfile I was able to avoid the error in alpine.
rm /var/spool/mail
great
have the same issues, but on 1.6.0 kaniko executor
but i use own kaniko docker image, on alpine, that copy binaries from official kaniko image
in official image (from scratch) issues not repeated, but on my alpine image with kaniko binaries repeated
FROM alpine:3.13 ... COPY --from=gcr.io/kaniko-project/executor:v1.6.0 /kaniko/executor /kaniko/executor COPY --from=gcr.io/kaniko-project/warmer:v1.6.0 /kaniko/warmer /kaniko/warmer
Kaniko will decompress the base image and overwrite the original file system. Once the original file system's directories such as [libc, usr, bin, etc.] are overwritten, some operations in the dockerfile will be unavailable, and some commands will show that the so library or some symbols is missing(such as python) , compilation may fail. After the compilation is complete, the file system of the container based on your own image will be destroyed.
If you want to customize the image, it is recommended to modify it on the basis of the dockerfile deploy/Dockerfile_debug
and use scratch
as base image and use busybox
file system as default file system. In addition, it is best to specify --cleanup
to clean up the unpacked file system directory when compiling with kaniko. If you want to bring some of your own programs into the image, it is best to compile statically
, or if the target program is not convenient for static compilation, you can also add the entire /
file system(of course you can exclude some files that you really don't use,entire / file system is too huge) of the host/container where the program is located into the image. After compiling the image with kaniko in the container based on your own image, release it(the root file system you brought in) to /
, and then set the system environment variables, so that you should be able to run some of your own programs without reporting that libc.so or other something is missing because the file system of the container has been replaced dynamically.
I am very sorry for my poor English, but I was deeply troubled by the feature that kaniko can modify the file system before. I would like to help everyone
this was fixed in https://github.com/GoogleContainerTools/kaniko/pull/1813
Actual behavior
To Reproduce Not easy. We're building our docker images with gitlab-ci (and this works great THANKS!) but it fails with this image (stripped for this issue)
Additional Information