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