Skip to content

Commit 57abf8f

Browse files
Krzysztof Wilczyńskiopenshift-cherrypick-robot
Krzysztof Wilczyński
authored and
openshift-cherrypick-robot
committed
Update the storage.conf configuration file template
Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent 4da8e68 commit 57abf8f

File tree

1 file changed

+25
-70
lines changed

1 file changed

+25
-70
lines changed

templates/common/_base/files/container-storage.yaml

Lines changed: 25 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ contents:
1010
# The "container storage" table contains all of the server options.
1111
[storage]
1212
13-
# Default Storage Driver
13+
# Default storage driver, must be set for proper operation.
1414
driver = "overlay"
1515
1616
# Temporary storage location
17-
runroot = "/var/run/containers/storage"
17+
runroot = "/run/containers/storage"
1818
1919
# Primary Read/Write location of container storage
2020
graphroot = "/var/lib/containers/storage"
@@ -27,10 +27,6 @@ contents:
2727
additionalimagestores = [
2828
]
2929
30-
# Size is used to set a maximum size of the container image. Only supported by
31-
# certain container storage drivers.
32-
size = ""
33-
3430
# Remap-UIDs/GIDs is the mapping from UIDs/GIDs as they should appear inside of
3531
# a container, to UIDs/GIDs as they should appear outside of the container, and
3632
# the length of the range of UIDs/GIDs. Additional mapped sets can be listed
@@ -47,77 +43,36 @@ contents:
4743
# range that matches the specified name, and using the length of that range.
4844
# Additional ranges are then assigned, using the ranges which specify the
4945
# lowest host-level IDs first, to the lowest not-yet-mapped container-level ID,
50-
# until all of the entries have been used for maps.
46+
# until all of the entries have been used for maps. This setting overrides the
47+
# Remap-UIDs/GIDs setting.
5148
#
5249
# remap-user = "storage"
5350
# remap-group = "storage"
5451
55-
[storage.options.overlay]
56-
# Storage Options for overlay
57-
58-
# Do not create a PRIVATE bind mount on the home directory.
59-
skip_mount_home = "true"
60-
61-
[storage.options.thinpool]
62-
# Storage Options for thinpool
63-
64-
# autoextend_percent determines the amount by which pool needs to be
65-
# grown. This is specified in terms of % of pool size. So a value of 20 means
66-
# that when threshold is hit, pool will be grown by 20% of existing
67-
# pool size.
68-
# autoextend_percent = "20"
69-
70-
# autoextend_threshold determines the pool extension threshold in terms
71-
# of percentage of pool size. For example, if threshold is 60, that means when
72-
# pool is 60% full, threshold has been hit.
73-
# autoextend_threshold = "80"
74-
75-
# basesize specifies the size to use when creating the base device, which
76-
# limits the size of images and containers.
77-
# basesize = "10G"
52+
[storage.options.pull_options]
53+
# Options controlling how storage is populated when pulling images.
7854
79-
# blocksize specifies a custom blocksize to use for the thin pool.
80-
# blocksize="64k"
55+
# Enable the "zstd:chunked" feature, which allows partial pulls, reusing
56+
# content that already exists on the system. This is disabled by default,
57+
# and must be explicitly enabled to be used. For more on zstd:chunked, see
58+
# https://github.com/containers/storage/blob/main/docs/containers-storage-zstd-chunked.md
59+
enable_partial_images = "false"
8160
82-
# directlvm_device specifies a custom block storage device to use for the
83-
# thin pool. Required if you setup devicemapper
84-
# directlvm_device = ""
61+
# Tells containers/storage to use hard links rather then create new files in
62+
# the image, if an identical file already existed in storage.
63+
use_hard_links = "false"
8564
86-
# directlvm_device_force wipes device even if device already has a filesystem
87-
# directlvm_device_force = "True"
65+
# Path to an ostree repository that might have
66+
# previously pulled content which can be used when attempting to avoid
67+
# pulling content from the container registry.
68+
ostree_repos = ""
8869
89-
# fs specifies the filesystem type to use for the base device.
90-
# fs="xfs"
91-
92-
# log_level sets the log level of devicemapper.
93-
# 0: LogLevelSuppress 0 (Default)
94-
# 2: LogLevelFatal
95-
# 3: LogLevelErr
96-
# 4: LogLevelWarn
97-
# 5: LogLevelNotice
98-
# 6: LogLevelInfo
99-
# 7: LogLevelDebug
100-
# log_level = "7"
101-
102-
# min_free_space specifies the min free space percent in a thin pool require for
103-
# new device creation to succeed. Valid values are from 0% - 99%.
104-
# Value 0% disables
105-
# min_free_space = "10%"
106-
107-
# mkfsarg specifies extra mkfs arguments to be used when creating the base
108-
# device.
109-
# mkfsarg = ""
110-
111-
# mountopt specifies extra mount options used when mounting the thin devices.
112-
# mountopt = ""
113-
114-
# use_deferred_removal Marking device for deferred removal
115-
# use_deferred_removal = "True"
70+
[storage.options.overlay]
71+
# Storage Options for overlay
11672
117-
# use_deferred_deletion Marking device for deferred deletion
118-
# use_deferred_deletion = "True"
73+
# Do not create a PRIVATE bind mount on the home directory.
74+
skip_mount_home = "true"
11975
120-
# xfs_nospace_max_retries specifies the maximum number of retries XFS should
121-
# attempt to complete IO when ENOSPC (no space) error is returned by
122-
# underlying storage device.
123-
# xfs_nospace_max_retries = "0"
76+
# Size is used to set a maximum size of the container image. Only supported by
77+
# certain container storage drivers.
78+
size = ""

0 commit comments

Comments
 (0)