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