sudo: The "no new privileges" flag is set, which prevents sudo from running as root. #87
Replies: 2 comments 1 reply
-
Sorry, no idea about vendor-specific quirks. I'll convert this to a discussion as it has little to do with the actual project. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I had this problem, it went away when I changed the execution enviroment to second generation: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using
gisops/valhalla:latest
to build a container to deploy to GCP Cloudrun. It fails due to this permissions error.'sudo: The "no new privileges" flag is set, which prevents sudo from running as root.'
The container works locally and on Kubernetes so perhaps this flag is set on the GCP cloudrun side.
My Dockerfile is simply
Attempting to run the container using the root user( As a test to bypass the flag) results in this error.
'ERROR: If you run with custom UID or GID you have to create the mapped directory to the container's /custom_files manually before starting the image'
Does this mean to simply add
RUN mkdir custom_files
to the Dockerfile and copy the files in there or?e.g
Any guidance would be appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions