diff options
-rw-r--r-- | recipes-containers/skopeo/files/storage.conf | 128 |
1 files changed, 95 insertions, 33 deletions
diff --git a/recipes-containers/skopeo/files/storage.conf b/recipes-containers/skopeo/files/storage.conf index 818cfe8f..722750c0 100644 --- a/recipes-containers/skopeo/files/storage.conf +++ b/recipes-containers/skopeo/files/storage.conf | |||
@@ -4,15 +4,19 @@ | |||
4 | # The "container storage" table contains all of the server options. | 4 | # The "container storage" table contains all of the server options. |
5 | [storage] | 5 | [storage] |
6 | 6 | ||
7 | # Default Storage Driver | 7 | # Default Storage Driver, Must be set for proper operation. |
8 | driver = "overlay" | 8 | driver = "overlay" |
9 | 9 | ||
10 | # Temporary storage location | 10 | # Temporary storage location |
11 | runroot = "/var/run/containers/storage" | 11 | runroot = "/run/containers/storage" |
12 | 12 | ||
13 | # Primary Read/Write location of container storage | 13 | # Primary Read/Write location of container storage |
14 | graphroot = "/var/lib/containers/storage" | 14 | graphroot = "/var/lib/containers/storage" |
15 | 15 | ||
16 | # Storage path for rootless users | ||
17 | # | ||
18 | # rootless_storage_path = "$HOME/.local/share/containers/storage" | ||
19 | |||
16 | [storage.options] | 20 | [storage.options] |
17 | # Storage options to be passed to underlying storage drivers | 21 | # Storage options to be passed to underlying storage drivers |
18 | 22 | ||
@@ -21,40 +25,98 @@ graphroot = "/var/lib/containers/storage" | |||
21 | additionalimagestores = [ | 25 | additionalimagestores = [ |
22 | ] | 26 | ] |
23 | 27 | ||
24 | # Size is used to set a maximum size of the container image. Only supported by | ||
25 | # certain container storage drivers. | ||
26 | size = "" | ||
27 | |||
28 | # Path to an helper program to use for mounting the file system instead of mounting it | ||
29 | # directly. | ||
30 | #mount_program = "/usr/bin/fuse-overlayfs" | ||
31 | |||
32 | # OverrideKernelCheck tells the driver to ignore kernel checks based on kernel version | ||
33 | override_kernel_check = "true" | ||
34 | |||
35 | # mountopt specifies comma separated list of extra mount options | ||
36 | mountopt = "nodev" | ||
37 | |||
38 | # Remap-UIDs/GIDs is the mapping from UIDs/GIDs as they should appear inside of | 28 | # Remap-UIDs/GIDs is the mapping from UIDs/GIDs as they should appear inside of |
39 | # a container, to UIDs/GIDs as they should appear outside of the container, and | 29 | # a container, to the UIDs/GIDs as they should appear outside of the container, |
40 | # the length of the range of UIDs/GIDs. Additional mapped sets can be listed | 30 | # and the length of the range of UIDs/GIDs. Additional mapped sets can be |
41 | # and will be heeded by libraries, but there are limits to the number of | 31 | # listed and will be heeded by libraries, but there are limits to the number of |
42 | # mappings which the kernel will allow when you later attempt to run a | 32 | # mappings which the kernel will allow when you later attempt to run a |
43 | # container. | 33 | # container. |
44 | # | 34 | # |
45 | # remap-uids = 0:1668442479:65536 | 35 | # remap-uids = 0:1668442479:65536 |
46 | # remap-gids = 0:1668442479:65536 | 36 | # remap-gids = 0:1668442479:65536 |
47 | 37 | ||
48 | # Remap-User/Group is a name which can be used to look up one or more UID/GID | 38 | # Remap-User/Group is a user name which can be used to look up one or more UID/GID |
49 | # ranges in the /etc/subuid or /etc/subgid file. Mappings are set up starting | 39 | # ranges in the /etc/subuid or /etc/subgid file. Mappings are set up starting |
50 | # with an in-container ID of 0 and the a host-level ID taken from the lowest | 40 | # with an in-container ID of 0 and then a host-level ID taken from the lowest |
51 | # range that matches the specified name, and using the length of that range. | 41 | # range that matches the specified name, and using the length of that range. |
52 | # Additional ranges are then assigned, using the ranges which specify the | 42 | # Additional ranges are then assigned, using the ranges which specify the |
53 | # lowest host-level IDs first, to the lowest not-yet-mapped container-level ID, | 43 | # lowest host-level IDs first, to the lowest not-yet-mapped in-container ID, |
54 | # until all of the entries have been used for maps. | 44 | # until all of the entries have been used for maps. |
55 | # | 45 | # |
56 | # remap-user = "storage" | 46 | # remap-user = "containers" |
57 | # remap-group = "storage" | 47 | # remap-group = "containers" |
48 | |||
49 | # Root-auto-userns-user is a user name which can be used to look up one or more UID/GID | ||
50 | # ranges in the /etc/subuid and /etc/subgid file. These ranges will be partitioned | ||
51 | # to containers configured to create automatically a user namespace. Containers | ||
52 | # configured to automatically create a user namespace can still overlap with containers | ||
53 | # having an explicit mapping set. | ||
54 | # This setting is ignored when running as rootless. | ||
55 | # root-auto-userns-user = "storage" | ||
56 | # | ||
57 | # Auto-userns-min-size is the minimum size for a user namespace created automatically. | ||
58 | # auto-userns-min-size=1024 | ||
59 | # | ||
60 | # Auto-userns-max-size is the minimum size for a user namespace created automatically. | ||
61 | # auto-userns-max-size=65536 | ||
62 | |||
63 | [storage.options.overlay] | ||
64 | # ignore_chown_errors can be set to allow a non privileged user running with | ||
65 | # a single UID within a user namespace to run containers. The user can pull | ||
66 | # and use any image even those with multiple uids. Note multiple UIDs will be | ||
67 | # squashed down to the default uid in the container. These images will have no | ||
68 | # separation between the users in the container. Only supported for the overlay | ||
69 | # and vfs drivers. | ||
70 | #ignore_chown_errors = "false" | ||
71 | |||
72 | # Inodes is used to set a maximum inodes of the container image. | ||
73 | # inodes = "" | ||
74 | |||
75 | # Path to an helper program to use for mounting the file system instead of mounting it | ||
76 | # directly. | ||
77 | #mount_program = "/usr/bin/fuse-overlayfs" | ||
78 | |||
79 | # mountopt specifies comma separated list of extra mount options | ||
80 | mountopt = "nodev" | ||
81 | |||
82 | # Set to skip a PRIVATE bind mount on the storage home directory. | ||
83 | # skip_mount_home = "false" | ||
84 | |||
85 | # Size is used to set a maximum size of the container image. | ||
86 | # size = "" | ||
87 | |||
88 | # ForceMask specifies the permissions mask that is used for new files and | ||
89 | # directories. | ||
90 | # | ||
91 | # The values "shared" and "private" are accepted. | ||
92 | # Octal permission masks are also accepted. | ||
93 | # | ||
94 | # "": No value specified. | ||
95 | # All files/directories, get set with the permissions identified within the | ||
96 | # image. | ||
97 | # "private": it is equivalent to 0700. | ||
98 | # All files/directories get set with 0700 permissions. The owner has rwx | ||
99 | # access to the files. No other users on the system can access the files. | ||
100 | # This setting could be used with networked based homedirs. | ||
101 | # "shared": it is equivalent to 0755. | ||
102 | # The owner has rwx access to the files and everyone else can read, access | ||
103 | # and execute them. This setting is useful for sharing containers storage | ||
104 | # with other users. For instance have a storage owned by root but shared | ||
105 | # to rootless users as an additional store. | ||
106 | # NOTE: All files within the image are made readable and executable by any | ||
107 | # user on the system. Even /etc/shadow within your image is now readable by | ||
108 | # any user. | ||
109 | # | ||
110 | # OCTAL: Users can experiment with other OCTAL Permissions. | ||
111 | # | ||
112 | # Note: The force_mask Flag is an experimental feature, it could change in the | ||
113 | # future. When "force_mask" is set the original permission mask is stored in | ||
114 | # the "user.containers.override_stat" xattr and the "mount_program" option must | ||
115 | # be specified. Mount programs like "/usr/bin/fuse-overlayfs" present the | ||
116 | # extended attribute permissions to processes within containers rather then the | ||
117 | # "force_mask" permissions. | ||
118 | # | ||
119 | # force_mask = "" | ||
58 | 120 | ||
59 | [storage.options.thinpool] | 121 | [storage.options.thinpool] |
60 | # Storage Options for thinpool | 122 | # Storage Options for thinpool |
@@ -102,12 +164,19 @@ mountopt = "nodev" | |||
102 | # Value 0% disables | 164 | # Value 0% disables |
103 | # min_free_space = "10%" | 165 | # min_free_space = "10%" |
104 | 166 | ||
105 | # mkfsarg specifies extra mkfs arguments to be used when creating the base. | 167 | # mkfsarg specifies extra mkfs arguments to be used when creating the base |
106 | # device. | 168 | # device. |
107 | # mkfsarg = "" | 169 | # mkfsarg = "" |
108 | 170 | ||
171 | # metadata_size is used to set the `pvcreate --metadatasize` options when | ||
172 | # creating thin devices. Default is 128k | ||
173 | # metadata_size = "" | ||
174 | |||
175 | # Size is used to set a maximum size of the container image. | ||
176 | # size = "" | ||
177 | |||
109 | # use_deferred_removal marks devicemapper block device for deferred removal. | 178 | # use_deferred_removal marks devicemapper block device for deferred removal. |
110 | # If the thinpool is in use when the driver attempts to remove it, the driver | 179 | # If the thinpool is in use when the driver attempts to remove it, the driver |
111 | # tells the kernel to remove it as soon as possible. Note this does not free | 180 | # tells the kernel to remove it as soon as possible. Note this does not free |
112 | # up the disk space, use deferred deletion to fully remove the thinpool. | 181 | # up the disk space, use deferred deletion to fully remove the thinpool. |
113 | # use_deferred_removal = "True" | 182 | # use_deferred_removal = "True" |
@@ -124,10 +193,3 @@ mountopt = "nodev" | |||
124 | # attempt to complete IO when ENOSPC (no space) error is returned by | 193 | # attempt to complete IO when ENOSPC (no space) error is returned by |
125 | # underlying storage device. | 194 | # underlying storage device. |
126 | # xfs_nospace_max_retries = "0" | 195 | # xfs_nospace_max_retries = "0" |
127 | |||
128 | # If specified, use OSTree to deduplicate files with the overlay backend | ||
129 | ostree_repo = "" | ||
130 | |||
131 | # Set to skip a PRIVATE bind mount on the storage home directory. Only supported by | ||
132 | # certain container storage drivers | ||
133 | skip_mount_home = "false" | ||