1containers-mounts.conf(5)()                        containers-mounts.conf(5)()
2
3
4

NAME

6       containers-mounts.conf  - configuration file for default mounts in con‐
7       tainers
8
9

DESCRIPTION

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

FORMAT

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
23       /usr/share/secrets:/run/secrets  would  cause  the  contents   of   the
24       /usr/share/secrets   directory  on  the  host  to  be  mounted  on  the
25       /run/secrets directory inside the container. Setting mountpoints allows
26       containers  to  use  the  files  of  the host, for instance, to use the
27       host's subscription to some enterprise Linux distribution.
28
29

FILES

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.
35
36

HISTORY

38       Aug  2018,  Originally compiled by Valentin Rothberg vrothberg@suse.com
39       ⟨mailto:vrothberg@suse.com⟩
40
41
42
43                                                   containers-mounts.conf(5)()
Impressum