-
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
[v0.2x.0] in base image deleted files are present again in derived image #1236
Comments
Yessss! I faced the exact same issue, thank you for writing this issue!!! I spent several hours tracking what was going on, but when I realized it was the latest kaniko release, I fixed it by replacing the latest tag to v19.0.0 version. I'll not move kaniko versions ever again! |
@diegosucaria Sorry for the regression, We are making our test coverage better by adding these Dockefiles to reduce regressions in upcoming releases. We will have a fix ASAP |
I used the
In both cases, the I ran
|
I found the culprit which was an optimization commit i added 67db518 |
are you talking about
Step1 is always fine, you can build this with docker, kaniko-v19 or kaniko-v21. But Step2 fails with kaniko-v21, in this build the deleted files are back. |
Thank you for the fix and the quick release! |
Actual behavior
Files removed in base image are present again in derived image.
Expected behavior
Files removed in base image should not be present again in derived image.
To Reproduce
Dockerfile:
docker run -v ~/.docker/config.json:/kaniko/.docker/config.json -v $(pwd):/workspace gcr.io/kaniko-project/executor:v0.21.0 --destination karsten13/kaniko-bug-base:latest
Dockerfile:
docker run -v ~/.docker/config.json:/kaniko/.docker/config.json -v $(pwd):/workspace gcr.io/kaniko-project/executor:v0.21.0 --destination karsten13/kaniko-bug-base:ontop
Logs (build derived image):
The problem appears since v0.20.0.
It works with v0.19.0. Here the logs of the derived build with v0.19.0:
Additional Information
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: