Martin Zihlmann
Martin Zihlmann
this is the underlying cause of https://github.com/GoogleContainerTools/kaniko/issues/3246
problem is here https://github.com/GoogleContainerTools/kaniko/blob/main/pkg/commands/workdir.go#L74 we add to the snapshot but don't cache it.
you can ensure that the workdir exists prior to running the command, not nice but not terrible either ```dockerfile RUN mkdir /app WORKDIR /app ```
@salzig please provide more context. there are a whole host of reasons why caching fails on multi-stage builds. Notable issues are labels being applied on intermediate images https://github.com/GoogleContainerTools/kaniko/pull/3413
If you're still looking for a solution to this you could give my fork a try https://github.com/mzihlmann/kaniko/releases/ It fixes this issue and a few more, mostly related to caching, if...
separate projects, both forked off google's 1.24.0
I was skimming through the code diff and found some real treasures 😃. For example what you have implemented as "cache probing" I'm currently trying to implement as the clumsily...
could you be looking for the `--cleanup` flag? https://github.com/GoogleContainerTools/kaniko#flag---cleanup
If you're still looking for a solution to this you could give my fork a try https://github.com/mzihlmann/kaniko/releases/ It fixes this issue and a few more, mostly related to caching, if...
dont want to spell out the obvious, but your request goes to `index.docker.io/v2`, your credentials are for `index.docker.io/v1`