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