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