Repository navigation
|
I'm trying to run all my docker images that don't need to be root as a non-root user. Is there a simple solution, what about mounting /etc/postfix external with permissions matching the user? Logs: |
Replies: 3 comments
AFAIK you need to run postfix's master process as root to be able to bind port 25 and access configuration files in
You can mount the spool directory like this: |
|
Port mapping is not an issue, but /etc access may be. |
|
O, I tried and mounted: I get warnings about non-root access, e.g.: And I have to copy the default /etc/postix config files to the /etc/postfix mount, and those could get out of sync with the container's version. All in I decided it is not worth the trouble, will keep running as root. |
O, I tried and mounted:
I get warnings about non-root access, e.g.:
And I have to copy the default /etc/postix config files to the /etc/postfix mount, and those could get out of sync with the container's version.
All in I decided it is not worth the trouble, will keep running as root.