--kaniko-dir is not used for the context, only for the Dockerfile
Actual behavior
When I am building an image with the Kaniko executor and specify --kaniko-dir, this only applies to the Dockerfile, not to the context
Expected behavior The Kaniko-Dir should be used for everything
To Reproduce Steps to reproduce the behavior:
Run this:
executor --kaniko-dir /somewhere --dockerfile /somewhere-else/Dockerfile --context /somewhere-else --no-push --tar-path container.tar
Additional Information
- Dockerfile Happens with any Dockerfile
- Build Context Happens with any build context
- Kaniko Image (fully qualified with digest)
No image, using
kanikofrom nixpkgs when building a derivation
Triage Notes for the Maintainers
| Description | Yes/No |
|---|---|
| Please check if this a new feature you are proposing |
|
| Please check if the build works in docker but not in kaniko |
|
Please check if this error is seen when you use --cache flag |
|
| Please check if your dockerfile is a multistage dockerfile |
|
Following with interest as I'm having issues related to this too.
I use a Persistent Volume for all build files but still Kaniko uses the worker node's ephemeral disk far too much and on a shared CI/CD setup the node is frequently running out of space.
Following with interest as I'm having issues related to this too.
I use a Persistent Volume for all build files but still Kaniko uses the worker node's ephemeral disk far too much and on a shared CI/CD setup the node is frequently running out of space.
Hi, I have already encountered this issue, did you find some solutions?