kaniko: operation not permitted when trying to build with kaniko
Hi,
I’m trying to build this image: https://github.com/gooflix/backend-demo/blob/master/Dockerfile
but it always fails with:
INFO[0000] Downloading base image maven:3.5-jdk-8
2018/11/20 18:35:44 No matching credentials were found, falling back on anonymous
INFO[0001] Executing 0 build triggers
INFO[0001] Unpacking rootfs as cmd RUN mvn -f /usr/src/backend-demo/pom.xml clean package requires it.
error building image: error building stage: chmod /bin: operation not permitted
the command I run is:
executor --context dir://$(pwd)/ --tarPath=kaniko-test.tar --no-push
I don’t use the docker image as I need a custom build image that provides additional toolss etc. - the above was used as a “simplified” example to start with …
executor runs inside a pod on a k8s, as non-root in case that makes this problematic?
I’m not sure where the chmod is coming from as the Dockerfile does not contain that command, I’m taking a guess (without looking) that it might be from the source image?
Any help with this would be really appreciated! Thanks!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16
Having a similar issue. Did anyone find an answer to this?
It seems you have to use
--destination localhost --tarPath=output.tarand not--no-push, using the latter will not generate anything