Skip to content

Running docker image as non-root #77

Answered by ptr727
ptr727 asked this question in Q&A
Discussion options

You must be logged in to vote

O, I tried and mounted:

    volumes:
      - "{{ appdata_dir }}/postfix-relay/config:/etc/postfix"
      - "{{ appdata_dir }}/postfix-relay/spool:/var/spool/postfix"

I get warnings about non-root access, e.g.:

Mar 17 14:47:30 smtp postfix/postfix-script[128]: warning: not owned by root: /var/spool/postfix/.
Mar 17 14:47:30 smtp postfix/postfix-script[130]: warning: group or other writable: /var/spool/postfix/.

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.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ptr727
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