Open bharath-krishna opened 2 years ago
We have a similar issue (on 1.6.0, 1.7.0 and 1.8.1), since it has been quite a while did you find a solution to this problem (or is there another update maybe)?
It's been quite a while, and if I remember correctly, the solution we found out was not to change USER in Dockerfile frequently, I mean changing from APP user to ROOT user and back.
If there are multiple changes like this then Kaniko fails to build.
Thanks for the reply! We did not do any user changes so that was a problem for us. When we switched to another base image (busybox -> debian) we did not encounter the problem anymore.
Actual behavior
/busybox/sleep infinity
commandkubectl exec
command/workspace
dir (contents below)executor --dockerfile=Dockerfile --no-push
Getting error as below
/workspace # executor --dockerfile=Dockerfile --no-push INFO[0000] Retrieving image manifest python:3.7.6-alpine3.11 INFO[0000] Retrieving image python:3.7.6-alpine3.11 from registry index.docker.io INFO[0002] Built cross stage deps: map[]
INFO[0002] Retrieving image manifest python:3.7.6-alpine3.11 INFO[0002] Returning cached image manifest
INFO[0002] Executing 0 build triggers
INFO[0002] Unpacking rootfs as cmd RUN apk add --no-cache openssl curl ca-certificates ssmtp requires it. INFO[0005] RUN apk add --no-cache openssl curl ca-certificates ssmtp INFO[0005] Taking snapshot of full filesystem...
. . . (14/15) Installing perl-git (2.24.4-r0) (15/15) Installing git-perl (2.24.4-r0) Executing busybox-1.31.1-r9.trigger ERROR: busybox-1.31.1-r9.trigger: script exited with error 127 1 error; 102 MiB in 55 packages error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1
Expected behavior Expected to get output as below when I run kaniko with
docker run
commandTo Reproduce Steps to reproduce the behavior:
/busybox/sleep infinity
commandkubectl exec
command/workspace
directoryexecutor --dockerfile=Dockerfile --no-push
Additional Information
Dockerfile
Build Context Nothing else only Docker file
Kaniko Image (fully qualified with digest) gcr.io/kaniko-project/executor:v1.7.0-debug
Kubernetes container commands and args command = ["/bin/sh", "-c"] args: [ "/busybox/sleep infinity" ]
Triage Notes for the Maintainers
--cache
flag