Skip to content

Run as Non Root #108

Discussion options

You must be logged in to vote

Currently this project is using the same behaviour as the official postgresql server container so currently is running as root user.

Changing this would break any existing deployment, but this behaviour can be changed at runtime time by configuring it in your deployment configuration:

  • If you use docker manually use the --user argument as described in their documentation.
  • If you are using docker-compose set the user property at the docker-compose file as described in their documentation.
  • If you are using Kubernetes use the runAsUser of the securityContext as described in their documentation.

There are already created user and group in the images that can be used with the above configurat…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by prodrigestivill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #29 on August 20, 2022 17:51.