I am running Jenkins on Openshfit using Catalog, however, after creating my pipeline, I am getting Docker build failed
I was trying to access the Pod as root and install docker from there but not possible. scc showing restricted mode.
Any idea how to Edite the yml file to get the pod to run with root privileges
First, you should not run pod as root user because it can compromise whole openshift cluster security. Its not best practice to run as root user.
I would suggest using docker build config or jenkins pipeline strategy to build images in oenshift jenkins.
Still if you want to run your pod as root user, then follow the below steps:
create a service account in your namespace
add the service account to "anyuid" scc
then run your pod with this service account.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.