Skip to content

sudo fails to run in k8s #14

Description

@telmich

When trying to run thecodingmachine/workadventure-front:v1.6.4 it fails with:

[10:58] nb3:generic% kubectl logs -f front-5f7d75f9cb-9n6xc 
sudo: unable to send audit message
sudo: pam_open_session: System error
sudo: policy plugin failed session initialization

Changing the cmd to shell and testing manually:

docker@front-758dbc949-jm2v2:/var/www/html$ sudo -i
sudo: unable to send audit message
sudo: pam_open_session: System error
sudo: policy plugin failed session initialization

Seeing that the initial script switches directly to execute sudo tini, I wonder if it wouldn't make sense to...

  • Remove sudo
  • Execute the container with uid 0 by default?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions