Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
"Operation not permitted" inside pods #4078
I'm trying to deploy a pod using this manifest: http://www.fpaste.org/253439/14392147/ , which I just translated from api v1beta1 to api v1. (It used to work on v1beta1)
The pod failed, so I saw the logs with `docker logs and I got the following result:
"chown: changing ownership of '/var/lib/postgresql': Operation not permitted"
I get the same error with every pod I try to deploy. Here's the error of a similar deployment, with a redis container:
"mkdir: cannot create directory '/run/redis': Permission denied"
I already disabled Selinux, and it's still not working. I don't know what to do anymore. I saw a similar issue here, but in that case the user was able to deploy a pod using permissive mode, whereas whereas I am not able to do so.
I'm running a single node installation on a CentOS 7 host, deployed with openshift-ansible.
[cloud@master ~]$ oc version
By default, images are run as a high, predictable UID. That means that the image doesn't automatically have access to files that it was created as. You can disable this protection per project, or use an image that doesn't require being run as a particular UID. @bparees can you link the other items?
@sebiwi please see "support arbitrary user ids" here:
Other options include:
Also you need to make sure your process isn't trying to listen on a privileged port since it's not going to be running as root.