Skip to content

Error: container has runAsNonRoot and image will run as root #107

@hirannair

Description

@hirannair

Im getting the below error while trying to run localizer

We have a PodSecurityPolicy set in our clusters - “RunasNonRootUser”

I think the pod is failing to run because it does not have any RunAsUser set.

Below are the errors.

NAME                                            READY   STATUS                       RESTARTS   AGE
localizer-finacle-limits-nch2w                  0/1     CreateContainerConfigError   0          106s
Events:
  Type     Reason     Age               From               Message
  ----     ------     ----              ----               -------
  Normal   Scheduled  54s               default-scheduler  Successfully assigned fin-acceptance/localizer-finacle-limits-nch2w
 to node-24
  Normal   Pulling    6s (x5 over 53s)  kubelet            Pulling image "linuxserver/openssh-server"
  Normal   Pulled     5s (x5 over 48s)  kubelet            Successfully pulled image "linuxserver/openssh-server"
  Warning  Failed     5s (x5 over 48s)  kubelet            Error: container has runAsNonRoot and image will run as root

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions