CONTAINERS-MOUNTS.CONF(5)
π containers-mounts.conf(5) β default mounts, but make it cute π
okay so bestie, welcome to the manual page for containers-mounts.conf β yes, that's containers-mounts.conf(5) in manpage-speak β and it's all about the default mounts that show up inside containers. no cap. π¦
πΈ NAME πΈ
containers-mounts.conf β configuration file for default mounts in containers. That's it, that's the name, and it ate. β¨
π DESCRIPTION π
The mounts.conf file specifies volume mount directories that are automatically mounted inside containers. Container processes can then use this content. Usually these directories are used for passing secrets or credentials required by the package software to access remote package repositories. Very "pass the aux but for secrets" energy. π₯
Security moment, bestie: for security reasons, tools adhering to mounts.conf are expected to copy the contents instead of bind mounting the paths from the host. That's a big deal β copy, don't bind-mount the host paths. π«Ά
π FORMAT π
The format of mounts.conf is the volume format /SRC:/DEST, one mount per line. Literally one mount per line, okay? π
For example, a mounts.conf with the line
/usr/share/secrets:/run/secrets
would cause the contents of the /usr/share/secrets directory on the host to be mounted on the /run/secrets directory inside the container. Setting mountpoints allows containers to use the files of the host β for instance, to use the host's subscription to some enterprise Linux distribution. iconic behavior, honestly. π
π«Ά FILES π«Ά
Some distributions may provide a /usr/share/containers/mounts.conf file to provide default mounts, but users can create a /etc/containers/mounts.conf to specify their own special volumes to mount in the container.
When Podman runs in rootless mode, the file $HOME/.config/containers/mounts.conf will override the default if it exists. slay, rootless Podman doing its thing. π
π HISTORY π
Aug 2018, originally compiled by Valentin Rothberg vrothberg@suse.com β¨mailto:vrothberg@suse.comβ©. π
okay that's the whole page! source/version: containers-mounts.conf(5)() and date: blank in the footer β so here's your cute sign-off, bestie. mwah. πβ¨
π¦ where this page comes from
- centos-stream 10: containers-common 6:6.0-3.el10 Β· Apache-2.0
- debian trixie: golang-github-containers-common 0.62.2+ds1-2 Β· Apache-2.0
- ubuntu noble: golang-github-containers-common 0.57.4+ds1-2 Β· Apache-2.0
- ubuntu noble: golang-github-containers-common 0.57.4+ds1-2ubuntu0.2 Β· Apache-2.0
- ubuntu questing: golang-github-containers-common 0.62.2+ds1-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms