-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
error building image: error building stage: error removing sbin to make way for new symlink: remove /sbin/docker-init: device or resource busy #946
Comments
docker (version 18.03) init is |
is this a possible duplicate of #1001 ? |
@hanlaipeng Can you paste your container logs along with your dockerfile? Please run kaniko with |
ugh, same issue w/ |
only reverting to 0.15.0 lets me actually get working images |
oh, I read the code and find error in this: |
+1. Facing same issue with Kaniko version : v0.17.1.
|
Same here using executor:latest (v0.22.0), currently blocking google/ground-platform#289 The first run builds the image successfully, but successive runs return:
Dockerfile, sans comments:
Tried reverting to v0.15.0 but no change. I see mention of clearing cached files, but unsure how to do that. Running Cloud Build from GitHub checks. |
@tejal29 Update: We were able to get this working for our project by writing deps to /usr/src instead of /workspace, and then moving them to /workspace at build time (see https://github.com/google/ground-platform/pull/289/files). I'm not sure if this is the correct approach, but wanted to share in case it's a viable workaround and in case it can help isolate the cause. |
Issue still present in gcr.io/kaniko-project/executor:v1.0.0, and will affect any from image where |
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/37003 A new version of the gitlab-runner triggers this problem. Downgrading gitlab-runner resolves it. This is maybe some problem in the environment, rather than kaniko? |
I also confirm that GitLab Runner 16.6.0 creates this issue. Downgrading to version 16.5.0 helped. I use kaniko v1.14.0. |
As explained in https://gitlab.com/gitlab-org/gitlab-runner/-/issues/37003#note_1661177356, GitLab Runner v16.6.0 enables the However, I think the existence of Enabling
It seems this happens because a Docker image that has |
Can Anyone please explain me how we can downgrade the gitlab version? |
With regard to #946 (comment), I was wondering why Kaniko tries to extract files into
An attempt in #2169 was made to improve this, but it was closed due to #2169 (comment). @hown3d Could we reconsider that pull request in light of this issue? |
The PR is closed due to the way kaniko is designed which makes it hard to implement chroot isolation. I don't have time at the moment to implement such a big change, which should also be discussed beforehand somewhere. In my time implementing the PR mentioned above, kaniko wasn't able to straight up run without seccomp and apparmor configuration of the container, which makes it not suitable for default usage. |
I run the kaniko in kubernetes, the k8s node's docker version is 19.03. When i run kaniko in k8s, there is an error:
"error building image: error building stage: error removing sbin to make way for new symlink: remove /sbin/docker-init: device or resource busy".
However, if k8s node's docker version is 18.03, it works. So, i want to know how to fix it when i run kaniko in k8s which cluster node docker version is 19.03. Thanks very much!
The text was updated successfully, but these errors were encountered: