-
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:
|
Beta Was this translation helpful? Give feedback.
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:
|
Beta Was this translation helpful? Give feedback.
-
Port mapping is not an issue, but /etc access may be. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.