6f9067
# This file is is the configuration file for all tools
6f9067
# that use the containers/storage library.
d82e54
# See man 5 containers-storage.conf for more information
d82e54
# The "container storage" table contains all of the server options.
d82e54
[storage]
d82e54
d82e54
# Default Storage Driver
d82e54
driver = "overlay"
d82e54
d82e54
# Temporary storage location
d82e54
runroot = "/var/run/containers/storage"
d82e54
d82e54
# Primary Read/Write location of container storage
d82e54
graphroot = "/var/lib/containers/storage"
d82e54
3f07b4
# Storage path for rootless users
3f07b4
#
3f07b4
# rootless_storage_path = "$HOME/.local/share/containers/storage"
3f07b4
d82e54
[storage.options]
d82e54
# Storage options to be passed to underlying storage drivers
d82e54
d82e54
# AdditionalImageStores is used to pass paths to additional Read/Only image stores
d82e54
# Must be comma separated list.
d82e54
additionalimagestores = [
d82e54
]
d82e54
d82e54
# Remap-UIDs/GIDs is the mapping from UIDs/GIDs as they should appear inside of
3f07b4
# a container, to the UIDs/GIDs as they should appear outside of the container,
3f07b4
# and the length of the range of UIDs/GIDs.  Additional mapped sets can be
3f07b4
# listed and will be heeded by libraries, but there are limits to the number of
d82e54
# mappings which the kernel will allow when you later attempt to run a
d82e54
# container.
d82e54
#
d82e54
# remap-uids = 0:1668442479:65536
d82e54
# remap-gids = 0:1668442479:65536
d82e54
3f07b4
# Remap-User/Group is a user name which can be used to look up one or more UID/GID
d82e54
# ranges in the /etc/subuid or /etc/subgid file.  Mappings are set up starting
3f07b4
# with an in-container ID of 0 and then a host-level ID taken from the lowest
d82e54
# range that matches the specified name, and using the length of that range.
d82e54
# Additional ranges are then assigned, using the ranges which specify the
3f07b4
# lowest host-level IDs first, to the lowest not-yet-mapped in-container ID,
d82e54
# until all of the entries have been used for maps.
d82e54
#
3f07b4
# remap-user = "containers"
3f07b4
# remap-group = "containers"
3f07b4
3f07b4
# Root-auto-userns-user is a user name which can be used to look up one or more UID/GID
3f07b4
# ranges in the /etc/subuid and /etc/subgid file.  These ranges will be partioned
3f07b4
# to containers configured to create automatically a user namespace.  Containers
3f07b4
# configured to automatically create a user namespace can still overlap with containers
3f07b4
# having an explicit mapping set.
3f07b4
# This setting is ignored when running as rootless.
3f07b4
# root-auto-userns-user = "storage"
3f07b4
#
3f07b4
# Auto-userns-min-size is the minimum size for a user namespace created automatically.
3f07b4
# auto-userns-min-size=1024
3f07b4
#
3f07b4
# Auto-userns-max-size is the minimum size for a user namespace created automatically.
3f07b4
# auto-userns-max-size=65536
3f07b4
3f07b4
[storage.options.overlay]
3f07b4
# ignore_chown_errors can be set to allow a non privileged user running with
3f07b4
# a single UID within a user namespace to run containers. The user can pull
3f07b4
# and use any image even those with multiple uids.  Note multiple UIDs will be
3f07b4
# squashed down to the default uid in the container.  These images will have no
3f07b4
# separation between the users in the container. Only supported for the overlay
3f07b4
# and vfs drivers.
3f07b4
#ignore_chown_errors = false
3f07b4
3f07b4
# Path to an helper program to use for mounting the file system instead of mounting it
3f07b4
# directly.
3f07b4
#mount_program = "/usr/bin/fuse-overlayfs"
3f07b4
3f07b4
# mountopt specifies comma separated list of extra mount options
3f07b4
mountopt = "nodev,metacopy=on"
3f07b4
3f07b4
# Size is used to set a maximum size of the container image.
3f07b4
# size = ""
d82e54
d82e54
[storage.options.thinpool]
d82e54
# Storage Options for thinpool
d82e54
d82e54
# autoextend_percent determines the amount by which pool needs to be
d82e54
# grown. This is specified in terms of % of pool size. So a value of 20 means
d82e54
# that when threshold is hit, pool will be grown by 20% of existing
d82e54
# pool size.
d82e54
# autoextend_percent = "20"
d82e54
d82e54
# autoextend_threshold determines the pool extension threshold in terms
d82e54
# of percentage of pool size. For example, if threshold is 60, that means when
d82e54
# pool is 60% full, threshold has been hit.
d82e54
# autoextend_threshold = "80"
d82e54
d82e54
# basesize specifies the size to use when creating the base device, which
d82e54
# limits the size of images and containers.
d82e54
# basesize = "10G"
d82e54
d82e54
# blocksize specifies a custom blocksize to use for the thin pool.
d82e54
# blocksize="64k"
d82e54
d82e54
# directlvm_device specifies a custom block storage device to use for the
6f9067
# thin pool. Required if you setup devicemapper.
d82e54
# directlvm_device = ""
d82e54
6f9067
# directlvm_device_force wipes device even if device already has a filesystem.
d82e54
# directlvm_device_force = "True"
d82e54
d82e54
# fs specifies the filesystem type to use for the base device.
d82e54
# fs="xfs"
d82e54
d82e54
# log_level sets the log level of devicemapper.
d82e54
# 0: LogLevelSuppress 0 (Default)
d82e54
# 2: LogLevelFatal
d82e54
# 3: LogLevelErr
d82e54
# 4: LogLevelWarn
d82e54
# 5: LogLevelNotice
d82e54
# 6: LogLevelInfo
d82e54
# 7: LogLevelDebug
d82e54
# log_level = "7"
d82e54
d82e54
# min_free_space specifies the min free space percent in a thin pool require for
d82e54
# new device creation to succeed. Valid values are from 0% - 99%.
d82e54
# Value 0% disables
d82e54
# min_free_space = "10%"
d82e54
3f07b4
# mkfsarg specifies extra mkfs arguments to be used when creating the base
d82e54
# device.
d82e54
# mkfsarg = ""
d82e54
3f07b4
# Size is used to set a maximum size of the container image.
3f07b4
# size = ""
3f07b4
6f9067
# use_deferred_removal marks devicemapper block device for deferred removal.
3f07b4
# If the thinpool is in use when the driver attempts to remove it, the driver
6f9067
# tells the kernel to remove it as soon as possible. Note this does not free
6f9067
# up the disk space, use deferred deletion to fully remove the thinpool.
d82e54
# use_deferred_removal = "True"
d82e54
6f9067
# use_deferred_deletion marks thinpool device for deferred deletion.
6f9067
# If the device is busy when the driver attempts to delete it, the driver
6f9067
# will attempt to delete device every 30 seconds until successful.
6f9067
# If the program using the driver exits, the driver will continue attempting
6f9067
# to cleanup the next time the driver is used. Deferred deletion permanently
6f9067
# deletes the device and all data stored in device will be lost.
d82e54
# use_deferred_deletion = "True"
d82e54
d82e54
# xfs_nospace_max_retries specifies the maximum number of retries XFS should
d82e54
# attempt to complete IO when ENOSPC (no space) error is returned by
d82e54
# underlying storage device.
d82e54
# xfs_nospace_max_retries = "0"