-
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
failed to unpack: : waiting for the reexec command failed #1149
Comments
@Bean900 I am not sure how we can help more with this. Judging from this line here https://github.com/cloudfoundry/grootfs/blob/master/base_image_puller/unpacker/whiteout_handler_linux.go#L22 We recently fixed a bug to add parent dirs for files |
Thanks for the answer :) |
Hi all, are there any plans to fix this if not already fixed? I've run into this issue recently and would love to see it resolved :) |
Kaniko is effectively unstaffed at this time, so any improvements tend to come from motivated and capable contributors from the community. If you're interested in investigating and fixing this issue, I'll happily review and approve any PRs that get sent my way. |
Fixes GoogleContainerTools#1149 The OCI image spec does not specify this order but it's a good idea and Docker does the same. When manually comparing layers created by Docker and Kaniko there are still some differences (that container-diff does not show): * Kaniko adds / to layers * For `mkdir /test`, docker adds `/test` and an opaque whiteout file `/test/.wh..wh..opq`. Kaniko only adds `/test/` (and /).
Fixes GoogleContainerTools#1149 The OCI image spec does not specify this order but it's a good idea and Docker does the same. When manually comparing layers created by Docker and Kaniko there are still some differences (that container-diff does not show): * Kaniko adds / to layers * For `mkdir /test`, docker adds `/test` and an opaque whiteout file `/test/.wh..wh..opq`. Kaniko only adds `/test/` (and /).
* Write parent directories to tar before whiteout files Fixes #1149 The OCI image spec does not specify this order but it's a good idea and Docker does the same. When manually comparing layers created by Docker and Kaniko there are still some differences (that container-diff does not show): * Kaniko adds / to layers * For `mkdir /test`, docker adds `/test` and an opaque whiteout file `/test/.wh..wh..opq`. Kaniko only adds `/test/` (and /). * snapshot_test: cleanup Fix typos and use listFilesInTar() where possible
Actual behavior
I am currently migrating my Dockerfiles to be build with Kaniko (V16 and V19 have been tried). The following error occurs in two of my Dockerfiles when starting in Cloud Foundry with
cf push
(Dockerimage build with kaniko:thebohne/kaniko:kaniko
):Expected behavior
The expected behavior looks like this when building with Docker (
docker build .
) and starting withcf push
(Dockerimage build with docker:thebohne/kaniko:docker
):To Reproduce
So I wrote a minimal Dockerfile:
The same error should occur with other base images as well.
I am running the following commands in my Jenkinspipeline (there should be no difference when running on your local maschine):
/kaniko/executor --destination=thebohne/kaniko:kaniko --context=${WORKSPACE} --dockerfile=src/main/docker/Dockerfile
or with--cache=true
CF_DOCKER_PASSWORD=${DOCKER_PASSWORD} cf push ${NAME} --docker-image thebohne/kaniko:kaniko --docker-username ${USERNAME} -u process
EDIT
Here a little Testmatrix:
There appears to be a connection between Cloud Foundry and Kaniko. Since there is a possibility that it can also be a bug in Cloud Foundry, I also created an issue there: cloudfoundry/grootfs#71
The text was updated successfully, but these errors were encountered: