kaniko
kaniko copied to clipboard
How to change kaniko's working directory
Actual behavior A clear and concise description of what the bug is. Due to the 20G size limitation of the container root directory, the storage is full when building the image. How to solve this problem?
dpkg: error processing archive /tmp/apt-dpkg-install-aeLemm/44-cuda-documentation-10-0_10.0.130-1_amd64.deb (--unpack): cannot copy extracted data for './usr/local/cuda-10.0/doc/html/search/index-2.js' to '/usr/local/cuda-10.0/doc/html/search/index-2.js.dpkg-new': failed to write (No space left on device)
Expected behavior A clear and concise description of what you expected to happen.
To Reproduce Steps to reproduce the behavior:
- ...
- ...
Additional Information
- Dockerfile Please provide either the Dockerfile you're trying to build or one that can reproduce this error.
- Build Context Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
- Kaniko Image (fully qualified with digest)
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 |
|
Is anybody taking care of this issue since we have the same problem.
@lyj8330328 @manuelwallrapp - can you add some additional information as to what the issue you are encountering is? It is possible to change Kaniko's working directory using the KANIKO_DIR
env var:
https://github.com/GoogleContainerTools/kaniko/blob/main/pkg/config/init.go#L30
Does that resolve the issue related to the 20GB size limit here? Thanks