File storage.conf of Package libcontainers-common
134
1
# This file is is the configuration file for all tools
2
# that use the containers/storage library.
3
# See man 5 containers-storage.conf for more information
4
# The "container storage" table contains all of the server options.
5
[storage]
6
7
# Default Storage Driver
8
driver = "overlay"
9
10
# Temporary storage location
11
runroot = "/var/run/containers/storage"
12
13
# Primary Read/Write location of container storage
14
graphroot = "/var/lib/containers/storage"
15
16
[storage.options]
17
# Storage options to be passed to underlying storage drivers
18
19
# AdditionalImageStores is used to pass paths to additional Read/Only image stores
20
# Must be comma separated list.
21
additionalimagestores = [
22
]
23
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 = "false"
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
39
# a container, to UIDs/GIDs as they should appear outside of the container, and
40
# the length of the range of UIDs/GIDs. Additional mapped sets can be listed
41
# 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
43
# container.
44
#
45
# remap-uids = 0:1668442479:65536
46
# remap-gids = 0:1668442479:65536
47
48
# Remap-User/Group is a 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
50
# with an in-container ID of 0 and the a host-level ID taken from the lowest
51
# 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
53
# lowest host-level IDs first, to the lowest not-yet-mapped container-level ID,
54
# until all of the entries have been used for maps.
55
#
56
# remap-user = "storage"
57
# remap-group = "storage"
58
59
# If specified, use OSTree to deduplicate files with the overlay backend
60
# ostree_repo = ""
61
62
# Set to skip a PRIVATE bind mount on the storage home directory. Only supported by
63
# certain container storage drivers
64
# skip_mount_home = "false"
65
66
[storage.options.thinpool]
67
# Storage Options for thinpool
68
69
# autoextend_percent determines the amount by which pool needs to be
70
# grown. This is specified in terms of % of pool size. So a value of 20 means
71
# that when threshold is hit, pool will be grown by 20% of existing
72
# pool size.
73
# autoextend_percent = "20"
74
75
# autoextend_threshold determines the pool extension threshold in terms
76
# of percentage of pool size. For example, if threshold is 60, that means when
77
# pool is 60% full, threshold has been hit.
78
# autoextend_threshold = "80"
79
80
# basesize specifies the size to use when creating the base device, which
81
# limits the size of images and containers.
82
# basesize = "10G"
83
84
# blocksize specifies a custom blocksize to use for the thin pool.
85
# blocksize="64k"
86
87
# directlvm_device specifies a custom block storage device to use for the
88
# thin pool. Required if you setup devicemapper.
89
# directlvm_device = ""
90
91
# directlvm_device_force wipes device even if device already has a filesystem.
92
# directlvm_device_force = "True"
93
94
# fs specifies the filesystem type to use for the base device.
95
# fs="xfs"
96
97
# log_level sets the log level of devicemapper.
98
# 0: LogLevelSuppress 0 (Default)
99
# 2: LogLevelFatal
100
# 3: LogLevelErr
101
# 4: LogLevelWarn
102
# 5: LogLevelNotice
103
# 6: LogLevelInfo
104
# 7: LogLevelDebug
105
# log_level = "7"
106
107
# min_free_space specifies the min free space percent in a thin pool require for
108
# new device creation to succeed. Valid values are from 0% - 99%.
109
# Value 0% disables
110
# min_free_space = "10%"
111
112
# mkfsarg specifies extra mkfs arguments to be used when creating the base.
113
# device.
114
# mkfsarg = ""
115
116
# use_deferred_removal marks devicemapper block device for deferred removal.
117
# If the thinpool is in use when the driver attempts to remove it, the driver
118
# tells the kernel to remove it as soon as possible. Note this does not free
119
# up the disk space, use deferred deletion to fully remove the thinpool.
120
# use_deferred_removal = "True"
121
122
# use_deferred_deletion marks thinpool device for deferred deletion.
123
# If the device is busy when the driver attempts to delete it, the driver
124
# will attempt to delete device every 30 seconds until successful.
125
# If the program using the driver exits, the driver will continue attempting
126
# to cleanup the next time the driver is used. Deferred deletion permanently
127
# deletes the device and all data stored in device will be lost.
128
# use_deferred_deletion = "True"
129
130
# xfs_nospace_max_retries specifies the maximum number of retries XFS should
131
# attempt to complete IO when ENOSPC (no space) error is returned by
132
# underlying storage device.
133
# xfs_nospace_max_retries = "0"
134