.nh .TH containers\-mounts.conf(5) .SH NAME .PP containers\-mounts.conf \- configuration file for default mounts in containers .SH DESCRIPTION .PP 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. Note that for security reasons, tools adhering to the mounts.conf are expected to copy the contents instead of bind mounting the paths from the host. .SH FORMAT .PP The format of the mounts.conf is the volume format \fB\fC/SRC:/DEST\fR, one mount per line. For example, a mounts.conf with the line \fB\fC/usr/share/secrets:/run/secrets\fR would cause the contents of the \fB\fC/usr/share/secrets\fR directory on the host to be mounted on the \fB\fC/run/secrets\fR 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. .SH FILES .PP Some distributions may provide a \fB\fC/usr/share/containers/mounts.conf\fR file to provide default mounts, but users can create a \fB\fC/etc/containers/mounts.conf\fR, to specify their own special volumes to mount in the container. When Podman runs in rootless mode, the file \fB\fC$HOME/.config/containers/mounts.conf\fR will override the default if it exists. .SH HISTORY .PP Aug 2018, Originally compiled by Valentin Rothberg vrothberg@suse.com \[la]mailto:vrothberg@suse.com\[ra]