From d1c71b22afd93ce8111647f059b6f3ee6654f2f2 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Tue, 25 Jun 2024 20:18:04 +1000 Subject: [PATCH] run docker as root user --- kubernetes/apps/nexus/app/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kubernetes/apps/nexus/app/deployment.yaml b/kubernetes/apps/nexus/app/deployment.yaml index 0fc80c1..5758d28 100644 --- a/kubernetes/apps/nexus/app/deployment.yaml +++ b/kubernetes/apps/nexus/app/deployment.yaml @@ -13,6 +13,9 @@ spec: labels: app: nexus spec: + securityContext: + runAsUser: 0 + runAsGroup: 0 containers: - name: nexus image: klo2k/nexus3:3.68.1-02