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