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