-
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 removing var/run to make way for new symlink: unlinkat #1002
Comments
I am have this error in gitlab ci .gitlab-ci.yaml INFO[0004] Unpacking rootfs as cmd ADD Gemfile* /app/ requires it. |
solution worked for me |
Thank you @eduscrakozabrus, worked for me too 🙏. So is this a bug in the newest version? |
I've also been having this issue - this solved it |
Looks like a duplicate of #1001 |
I had the same issue, i've fixed it by adding |
Strong recommendation to everyone; use an explicitly tagged release of the kaniko image. Don't use |
@cvgw thx for the suggestion, it makes totally sense. It would be great to mention it in the readme as it always advises to use |
closing this as dupe of #1001 |
@tejal29 What is the solution to this problem? #1001 seems to be related to CloudBuild (which I have no knowledge about). This issue here seems to be related to Kubernetes. AFAIK whitelisting |
Bug still present in debug-v0.17.0 - reverting to earlier version fix the build but not ideal. ''' |
@bozzo, where is this parameter passed? To kaniko executor? It didn't recognize that flag. I'm confused about that. |
I have the same issue ( with
|
@consideRatio It was an option added to the
|
@bozzo ah thanks for helping me out! I tried the following that does work for v0.16.0 on my gitlab-runner on k8s, but it fails for me with kaniko v0.17.0 with the error of this issue's title. script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# Kaniko reference:
# https://github.com/GoogleContainerTools/kaniko/blob/master/README.md#additional-flags
- >
/kaniko/executor
--context $CI_PROJECT_DIR/images
--dockerfile $CI_PROJECT_DIR/images/Dockerfile
--destination $CI_REGISTRY_IMAGE:cpu-$CI_COMMIT_SHORT_SHA
I think what happens in my case, is that the COPY statement in my Dockerfile triggers some similar logic that would require "whitelisting" but it does it outside the scope of a image snapshot situation, and hence the --whitelist-var-run flag isn't relevant.
ARG BASE_CONTAINER=ubuntu:bionic-20200112
FROM $BASE_CONTAINER
COPY base-notebook-assets/fix-permissions /usr/local/bin/fix-permissions |
Some info which will hopefully help clear up confusion: tldr; prior to v0.16.0 kaniko always whitelisted the path between v0.16.0 and v0.17.0 introduced the v0.17.0 removed the Updated, thanks @consideRatio for pointing out the mistake |
Thank you for an excellent summary @cvgw! For me, the --additional-whitelist within the debug-v0.16.0 image isn't recognized. It also didn't recognize the --whitelist-var-run=true or false option. Using debug-v0.17.0 I crash directly without specifying any flags with this issue's titles as an error. It also crash like this if i specify --whitelist-var-run=true or false - a flag that it now recognizes. The debug-v0.16.0 run that didn't fail due to this, later failed due to issues that i hope were resolved in debug-v0.17.0.
|
hey folks, Sorry we had a bad release v0.17.0. |
@bnouvelbmll This should now be fixed in v0.17.1 latest release pushed an hour ago. |
@fischerman Sorry for the inconvenience. We added the flag |
@tomislater This is should be fixed now in |
@tejal29 I wanted to confirm that v0.17.1 doesn't have the issue, and if i actively specify Thank you for your work on this! ❤️ 🎉! |
it is fixed for me also with v0.17.1 |
Fixed for me too, I close the issue, thanks all 👍 🚀 ! |
Actual behavior
Can not build the image, was working and suddenly was not.
Expected behavior
Be able to build the image.
To Reproduce
File system:
issue
directoryindex.bash
file under theissue
directory:context
directory in theissue
directoryDockerfile
file under thecontext
directory:builder.ash
file under thecontext
directory:index.bash
script:chmod +x issue/index.bash
index.bash
script:./issue/index.bash
Additional Information
The text was updated successfully, but these errors were encountered: