-
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
Cannot copy Dockerfile #681
Comments
Have the same problem with OpenShift (running under random user id) Use
and got back Folder permissions (docker is mounted volume)
|
Hello, Did anyone find a workaround or something else to make it working with openshift ? Or do we have any update on this issue ? Because I don't want to enable Thanks. |
Looking at tekton catalog, they would show you how to build your images using a buildah container, which seems to work just fine on OpenShift. See: https://github.com/tektoncd/catalog/blob/master/buildah/buildah.yaml |
Sidenote, as I'm struggling with weird Buildah errors (eg: can't change date on files and other permission denied, that would occur after installing packages, broken pipes, i/o errors, ...). You do not need adding your ServiceAccount to any SCC, using Kaniko. I can't explain how this is possible, though I can confirm that, creating a SA dedicated to image builds, and granting it with the
Task:
Pipeline:
Pipelinerun:
|
Running as root seems to fix it. |
AFAIK kaniko must run as root at this time. It's something we've discussed fixing but I don't think has been addressed yet. |
Hi I am still running into the same issue. Is there a resolution for this @tejal29 Error: error resolving dockerfile path: copying dockerfile: creating file: open /kaniko/Dockerfile: permission denied |
make a new image chmod 777 to /kaniko FROM gcr.io/kaniko-project/executor as kaniko |
docker pull bobbynie/kaniko-bash:latest |
openshift can't run as root |
Or rather: by default it can't or it is a malpractice to make it do so. |
Actual behavior
When trying to start Kaniko there error message is:
Expected behavior
It should just build container fine.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: