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