Skip to content
ohsudo, Home

Tags

#securitycontext

container has runAsNonRoot and image will run as root
Kubernetes

Kubernetes "container has runAsNonRoot and image will run as root": fix the image or the pod

CreateContainerConfigError with runAsNonRoot: the image runs as root or has a non-numeric USER. Fix the Dockerfile, set runAsUser, and keep restricted security.

Intermediate · 4 min read