-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Multi stage build ends with "no space left on device", no matter the free space you provide #2033
Comments
It looks like this only affects builds that copy from / . There is probably some sort of symlink loop or something involved here. Here is my minimal reproduction of this.
|
See #960 (comment) : Kaniko is using otiai10/copy#78 as its implementation for copying files, which does not handle device special files as |
We have the same issue when trying to build this Dockerfile: Any news on a workaround or a fix for this problem? |
Seems to be also relevant to hard links being copied, see #1743 |
Looking into this, it seems that with the latest image >v1.15.0, the output is:
which comes from: otiai10Cpy.Copy util.CopyFileOrSymlink(p, dstDir, config.RootDir) corresponding to the comment. |
Verified with v1.9.0 when this bug was filed. The error message was The memory usage is ~3 times more than what it takes from v1.18.0 from |
why doesn't kaniko just use |
This commit adds the skip option for otiai10.Copy to skip the /kaniko directory when the root is being copied. The files under /kaniko dir should be ignored and thus this shall not cause any loss of information. fixes: GoogleContainerTools#2033
This commit adds the skip option for otiai10.Copy to skip the /kaniko directory when the root is being copied. The files under /kaniko dir should be ignored and thus this shall not cause any loss of information. fixes: GoogleContainerTools#2033
This commit adds the skip option for otiai10.Copy to skip the /kaniko directory when the root is being copied. The files under /kaniko dir should be ignored and thus this shall not cause any loss of information. fixes: GoogleContainerTools#2033
This commit adds the skip option for otiai10.Copy to skip the /kaniko directory when the root is being copied. The files under /kaniko dir should be ignored and thus this shall not cause any loss of information. fixes: #2033
Actual behavior
When trying to build a multi stage container, Kaniko drains all the local storage available (source images weight between 1Gi to 2Gi, Kaniko drains up to 500Gi of storage) and crashes with
no space left on device
.Logs
Dockerfile (extract)
Command
Kaniko versions affected
Tried with
executor:v1.6.0-debug
andexecutor:v1.8.0-debug
Expected behavior
Build should work and end with a functional image (like local Docker does)
To Reproduce
Steps to reproduce the behavior:
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: