Open willzhang opened 7 months ago
I just ran into the same error you described: error building image: error building stage: failed to get filesystem from image: error removing bin to make way for new symlink: unlinkat //bin/sh: permission denied
and my problem was that my kaniko pods needed to run as root.
Check if your pipeline is making it running as root here? Since apt-get is a root command, its needs root to be succesful.
I also just run into sam error. I have runner deployed in Open Shift runner through Gitlab Runner Operator. This is wahat I am trying to do
build_image:
stage: build
tags:
- k8s
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- /kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--no-push
--verbosity=trace
--no-push-cache
I am stuck on it, and this is the onyl place that reference the same error. @ROunofF can you explain exactly what did you do? Thanks!
Actual behavior build failed in jenkins docker pipeline
Expected behavior build success in jenkins docker pipeline
To Reproduce 1、create jenkinsfile
2、Dockerfile
3、jenkins console logs
main error
all logs
The debug image i use with image id
c7c1f8d3d464