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

USER not respected / java running as root user #2421

Closed
joerg1985 opened this issue Apr 22, 2020 · 3 comments · Fixed by #2426
Closed

USER not respected / java running as root user #2421

joerg1985 opened this issue Apr 22, 2020 · 3 comments · Fixed by #2426
Milestone

Comments

@joerg1985
Copy link

Environment:

  • jib-maven-plugin, 2.2.0
  • maven
  • windows

Description of the issue:
The java application is run as root user, the dockerfile initializes for a different user.
The application is failing due to the wrong user context, in this specific case the base image is selenium/node-firefox and user is seluser.

Expected behavior:
The java application is run as the user specified by the Dockerfile.

Steps to reproduce:

  1. use seluser as base image
  2. set the entrypoint to whoami
@chanseokoh chanseokoh added this to the v2.3.0 milestone Apr 22, 2020
@chanseokoh
Copy link
Member

Hi @joerg1985,

Thank you for reporting this. I can reproduce this. We should fix this as a high priority.

As a workaround, you can set <container><user>seluser</user></container> or the system property jib.container.user (e.g., -Djib.container.user=seluser on the command-line).

@loosebazooka
Copy link
Member

@joerg1985 is this regression you're noticing, did it used to work with older versions?

@chanseokoh
Copy link
Member

@joerg1985 Jib 2.3.0 is released with this fix!

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.

3 participants