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