From e0eb5dde2f2e2d3c150390b4707e074abb5b03d7 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Thu, 16 Jan 2025 12:45:50 +0100 Subject: [PATCH] Actualizo README --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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.