We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description of the issue: Default configuration gives me the following warning:
Image docker.io/company/app runs as the root user which might not be permitted by your cluster administrator.
Expected behavior: Possibility to set a user or automatically use a specific user.
Steps to reproduce:
gradlew jib
Environment:
jib-gradle-plugin Configuration:
jib-gradle-plugin
jib { to { image = 'company/app:'+version auth { ... } } }
The text was updated successfully, but these errors were encountered:
Hi @beatjost , do you happen to be running the image with docker? If so, you can run the image with a specific user. I'd recommend 1000 as a default:
docker
docker run --user 1000 <image>
If you are running on Kubernetes, I would recommend always running pods with a security context:
Example from that page:
apiVersion: v1 kind: Pod metadata: name: security-context-demo-2 spec: securityContext: runAsUser: 1000 containers: - name: sec-ctx-demo-2 image: gcr.io/google-samples/node-hello:1.0 securityContext: runAsUser: 2000 allowPrivilegeEscalation: false
Sorry, something went wrong.
Thank you for your reply - will try with 'security context'...
No branches or pull requests
Description of the issue:
Default configuration gives me the following warning:
Expected behavior:
Possibility to set a user or automatically use a specific user.
Steps to reproduce:
gradlew jib
-> warning that images runs on root user...
Environment:
jib-gradle-plugin
Configuration:The text was updated successfully, but these errors were encountered: