October 2, 20214 yr Cheers everyone! As a total Docker Noob, I'm in the process of setting up a SMTP Relay Docker (https://hub.docker.com/r/juanluisbaptiste/postfix/). I've successfully set it up, and it's working just fine out of the box, BUT: I didn't set any data path. Reading the logs, Postfix is reading files in /dev/ as well as /etc/postfix. Where are those files stored, directly inside the image? Is it okay to keep it like this, or would it be best practice to mount those paths to an appdata folder? Thanks in advance!
October 2, 20214 yr 3 hours ago, Turnspit said: Where are those files stored, directly inside the image? Is it okay to keep it like this, or would it be best practice to mount those paths to an appdata folder? Any path not explicitly mounted is stored within the image. If you don't map them outside, then the downsides are that any time an update to the container is done, the contents will be lost. (along with if you ever have to recreate the image)
October 2, 20214 yr Author Thanks for the info Squid. 🙂 Since this specific Docker image is pulling all its relevant informations from env-variables, this shouldn't be a problem. Still wondering though - I tried mounting /etc to a folder in /appdata, and while the were some files created, some curcial files were missing (or not created) and postfix had problems starting and terminated after a couple of tries. For example: postconf: fatal: open /etc/postfix/main.cf: No such file or directory Edited October 2, 20214 yr by Turnspit
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.