About -user #100
-
Hi, would like to ask clarification about:
Why i need to run with postgres user? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It has been documented as requested by #29. More information can be found in official docker documentation. |
Beta Was this translation helpful? Give feedback.
-
Thanks! Well, i suppose the user running "docker-postgres-backup-local" should be the same running the db, otherwise it could not access the db to back it up. Correct? Per my understanding PostgreSQL runs as user "postgres" by default, so it's ok to run also your container as "postgres" user. |
Beta Was this translation helpful? Give feedback.
It has been documented as requested by #29.
But in general is a good practice to not run programs as root.
More information can be found in official docker documentation.