-
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
Kaniko build fails to unpack rootfs containing docker mounts #1424
Comments
looks similar to #946 |
In the source image /sbin is a symlink - as are other typical directories
|
The issue looks to be more general, the
I get the same error when
Looking at the code in pkg/util/fs_util.go it looks as though function: -
is reading the root tar archives entries and upon finding a symlink it wants to replace the existing /sbin which is a real directory with the symlink in the rootfs of the image - where upon it hits the issue that docker 19.03 has mounted Unless I'm mistaken any container built from |
Actual behavior
When a build step requires that kaniko unpacks the rootfs when kaniko is running from within Docker, and we have mounted files within the rootfs filessystem, we get a failure. Our CI/CD pipeline always tries to mount in some additional commands.
Test Dockerfile: -
test_script.sh: -
and build command...
Resultant output: -
Expected behavior
I would like the build to automatically skip over the mounted in file when making its snapshot or give me a command line option of paths to skip when taking snapshots.
To Reproduce
Steps to reproduce the behavior:
Additional Information
See above
A tls directory containing one or more files.
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: