-
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
Build failed with "removing whiteout sys/.wh..wh..opq: unlinkat /sys/.wh..opq: read-only file system" #1420
Comments
We got same error |
I can confirm this error on k8s too. |
I am running into the same issue with several different base docker images when trying to build an image in Gitlab CI pipeline.
|
Dear all, I'm stuck with it also in gitlab runners... any workaround ? |
We got it too. First it creates symlink Without that files build fails Any advice or idea for quick fix? It's really destroing some of impotant builds ;( |
Relates directly to #1944 |
The code here is just really strange: // GetFlattenedPathsForWhiteOut returns all paths in the current FS
func (l *LayeredMap) getFlattenedPathsForWhiteOut() map[string]struct{} {
paths := map[string]struct{}{}
for _, l := range l.layers {
for p := range l {
if strings.HasPrefix(filepath.Base(p), ".wh.") {
delete(paths, p)
}
paths[p] = struct{}{} // For what is then the "iffed" delete above??????
}
}
return paths
} Shouldn't that be: |
Actual behavior
The kaniko build failed while unpacking and whiteouting file systems. (Debug log is available in Additional Information section)
The build is working if doing with "docker build".
Expected behavior
Kaniko build should be successful if there is COPY command in Dockerfile.
To Reproduce
Run the below kaniko build on Docker
Additional Information
Kaniko Image (fully qualified with digest)
gcr.io/kaniko-project/executor:latest
Full Debug Log
--cache
flagThe text was updated successfully, but these errors were encountered: