Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add USER to Dockerfile #121

Open
MPParsley opened this issue Dec 22, 2021 · 1 comment · May be fixed by #122
Open

Add USER to Dockerfile #121

MPParsley opened this issue Dec 22, 2021 · 1 comment · May be fixed by #122

Comments

@MPParsley
Copy link

By default, containers run as root. A container running as root has full control of the host system. As container technology matures, more secure default options may become available. For now, requiring root is dangerous for others and may not be available in all environments. Your image should use the USER instruction to specify a non-root user for containers to run as. If your software does not create its own user, you can create a user and group in the Dockerfile.

Source: https://redhatgov.io/workshops/security_containers/exercise1.2/

@AneeshRT
Copy link

AneeshRT commented Aug 7, 2023

Hi,
I'm running into this issue, has there been any resolution for this? I'm using the latest image from katalonstudio/katalon dockerhub repo.
It runs fine if I run the command for tests by a root user. but it fails with NullPointerException the moment I switch to any user or run it as a openshift pod(which runs it with a different user from root).
image
Any help will be appreciated please at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants