Image built by kaniko might have whiteout files that *seems* unnecessary #2050
Labels
area/filesystems
For all bugs related to kaniko container filesystems (mounting issues etc)
kind/bug
Something isn't working
kind/friction
ok-to-close?
priority/p2
High impact feature/bug. Will get a lot of users happy
Actual behavior
Image built by kaniko might have whiteout files that seems unnecessary. More details in the To Reproduce section below. This behavior caused image pulling error when the image is pulled and unpacked by containerd. See containerd/containerd#4659
Expected behavior
Image built by kaniko should not have whiteout files if the actual files or the directories are deleted on lower layers.
To Reproduce
See containerd/containerd#4659 (comment) for details , but in general:
Kaniko built:
Docker built:
Note the whiteout files (
e.g. root/.gem/specs/api.rubygems.org%443/quick/Marshal.4.8/.wh.async-1.24.2.gemspec
) on the top layer of the kaniko-built image. The directory has actually been deleted in lower layers, so there is no need to have these whiteout files on the top layer. (And that's why the docker-built image doesn't have them)Additional Information
Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: