Multistage build removing build files and crashing #2801
Labels
area/filesystems
For all bugs related to kaniko container filesystems (mounting issues etc)
area/multi-stage builds
issues related to kaniko multi-stage builds
differs-from-docker
issue/deleting-files
issue/missing-files
kind/bug
Something isn't working
possible-dupe
priority/p0
Highest priority. Break user flow. We are actively looking at delivering it.
works-with-docker
After repeated /kaniko/executor execution the Busybox commands (du, ls, etc..) start to be "not found". When constructing a minimal reproducible example I encountered possibly different error described below:
Actual behavior
🔥🔥🔥All files in the current working dir are removed as result!🔥🔥🔥 The multistage build ends up with an error.
Expected behavior
docker run --entrypoint="" a5fc183260e7 ls -al /bin/grpc_health_probe
docker run --entrypoint="" a5fc183260e7 ls -al
To Reproduce
Steps to reproduce the behavior:
Additional Information - minimal reproducible example
/kaniko/executor \ --log-timestamp=true \ --dockerfile "Dockerfile" \ --no-push
Additional Information - expected behaviour example
gcr.io/kaniko-project/executor@sha256:b8c0977f88f24dbd7cbc2ffe5c5f824c410ccd0952a72cc066efc4b6dfbb52b6
Kaniko version : v1.16.0
Triage Notes for the Maintainers
--cache
flag (not exclusively)The text was updated successfully, but these errors were encountered: