kaniko: error building image: error building stage: error removing sbin to make way for new symlink: remove /sbin/docker-init: device or resource busy

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!

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 14
  • Comments: 16 (2 by maintainers)

Most upvoted comments

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.