Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker without Data path - where are the files?

Featured Replies

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!

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)

  • 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 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.