origin: Error: Failed switching to "redis": operation not permitted
Hello team!
I i’m just newbie in OpenShift and I’m having problem trying to run a Redis Server.
This is my output log:
[root@oc-master ~]# oc logs redis-2-9kbmf
error: failed switching to "redis": operation not permitted
Anyone know how to fix this?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (6 by maintainers)
@maiconbaumx glad to hear it!
Running application in OpenShift will run them as a random UUID to enhance security. It looks like your application failed to
su redis, which is expected. Which Redis deployment are you using? It doesn’t seem like we have an official OpenShift v3 Redis app to deploy yet, so you may need to edit your security context constraints to:Or generally use a less strict security context constraint as described in the administrator guide. Note that you will need cluster-level administrative privileges to make these changes.
Note that a more work-intensive approach but an approach that maximizes security would be to build a Redis container image that did not require a specific
USERor UUID, orroot.@bparees may be able to comment on deploying Redis specifically.