1containers-mounts.conf(5)() containers-mounts.conf(5)()
2
3
4
6 containers-mounts.conf - configuration file for default mounts in con‐
7 tainers
8
9
11 The mounts.conf file specifies volume mount directories that are auto‐
12 matically mounted inside containers. Container processes can then use
13 this content. Usually these directories are used for passing secrets or
14 credentials required by the package software to access remote package
15 repositories. Note that for security reasons, tools adhering to the
16 mounts.conf are expected to copy the contents instead of bind mounting
17 the paths from the host.
18
19
21 The format of the mounts.conf is the volume format /SRC:/DEST, one
22 mount per line. For example, a mounts.conf with the line /usr/share/se‐
23 crets:/run/secrets would cause the contents of the /usr/share/secrets
24 directory on the host to be mounted on the /run/secrets directory in‐
25 side the container. Setting mountpoints allows containers to use the
26 files of the host, for instance, to use the host's subscription to some
27 enterprise Linux distribution.
28
29
31 Some distributions may provide a /usr/share/containers/mounts.conf file
32 to provide default mounts, but users can create a /etc/contain‐
33 ers/mounts.conf, to specify their own special volumes to mount in the
34 container. When Podman runs in rootless mode, the file $HOME/.con‐
35 fig/containers/mounts.conf will override the default if it exists.
36
37
39 Aug 2018, Originally compiled by Valentin Rothberg vrothberg@suse.com
40 ⟨mailto:vrothberg@suse.com⟩
41
42
43
44 containers-mounts.conf(5)()