diff --git a/README.md b/README.md index d7e00a8..42b524e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ # Running Commands as Root in OpenShift +## Opción 1 + + oc adm policy add-scc-to-user anyuid -z default + +## Opción 2 + +Esta es la que usé la primera vez, pero hay que hacerlo para cada deployment. La opción 1 es una vez por proyecto. + Running commands as root in OpenShift is restricted by default due to security policies. To allow a container to run as root, you need to use the anyuid Security Context Constraints (SCC) or create a custom SCC. Here are the steps to enable running commands as root: 1. Create a Service Account: First, create a new service account in the project where you want to run the container as root.