2022-08-10 12:50:23 +00:00
|
|
|
# This file is the configuration file for all tools
|
2021-11-08 12:32:58 +00:00
|
|
|
# that use the containers/storage library. The storage.conf file
|
|
|
|
# overrides all other storage.conf files. Container engines using the
|
|
|
|
# container/storage library do not inherit fields from other storage.conf
|
|
|
|
# files.
|
|
|
|
#
|
|
|
|
# Note: The storage.conf file overrides other storage.conf files based on this precedence:
|
|
|
|
# /usr/containers/storage.conf
|
|
|
|
# /etc/containers/storage.conf
|
|
|
|
# $HOME/.config/containers/storage.conf
|
|
|
|
# $XDG_CONFIG_HOME/containers/storage.conf (If XDG_CONFIG_HOME is set)
|
2021-01-20 20:16:15 +00:00
|
|
|
# See man 5 containers-storage.conf for more information
|
|
|
|
# The "container storage" table contains all of the server options.
|
|
|
|
[storage]
|
|
|
|
|
|
|
|
# Default Storage Driver, Must be set for proper operation.
|
|
|
|
driver = "overlay"
|
|
|
|
|
|
|
|
# Temporary storage location
|
|
|
|
runroot = "/run/containers/storage"
|
|
|
|
|
2024-07-29 08:52:48 +00:00
|
|
|
# Priority list for the storage drivers that will be tested one
|
|
|
|
# after the other to pick the storage driver if it is not defined.
|
|
|
|
# driver_priority = ["overlay", "btrfs"]
|
|
|
|
|
2021-01-20 20:16:15 +00:00
|
|
|
# Primary Read/Write location of container storage
|
2021-10-07 12:51:51 +00:00
|
|
|
# When changing the graphroot location on an SELINUX system, you must
|
|
|
|
# ensure the labeling matches the default locations labels with the
|
|
|
|
# following commands:
|
|
|
|
# semanage fcontext -a -e /var/lib/containers/storage /NEWSTORAGEPATH
|
|
|
|
# restorecon -R -v /NEWSTORAGEPATH
|
2021-01-20 20:16:15 +00:00
|
|
|
graphroot = "/var/lib/containers/storage"
|
|
|
|
|
2023-09-21 11:37:43 +00:00
|
|
|
# Optional alternate location of image store if a location separate from the
|
|
|
|
# container store is required. If set, it must be different than graphroot.
|
|
|
|
# imagestore = ""
|
|
|
|
|
2021-10-07 12:51:51 +00:00
|
|
|
|
2021-01-20 20:16:15 +00:00
|
|
|
# Storage path for rootless users
|
|
|
|
#
|
|
|
|
# rootless_storage_path = "$HOME/.local/share/containers/storage"
|
|
|
|
|
2023-01-26 17:02:17 +00:00
|
|
|
# Transient store mode makes all container metadata be saved in temporary storage
|
|
|
|
# (i.e. runroot above). This is faster, but doesn't persist across reboots.
|
2023-04-10 14:57:52 +00:00
|
|
|
# Additional garbage collection must also be performed at boot-time, so this
|
|
|
|
# option should remain disabled in most configurations.
|
2023-01-26 17:02:17 +00:00
|
|
|
# transient_store = true
|
|
|
|
|
2021-01-20 20:16:15 +00:00
|
|
|
[storage.options]
|
|
|
|
# Storage options to be passed to underlying storage drivers
|
|
|
|
|
|
|
|
# AdditionalImageStores is used to pass paths to additional Read/Only image stores
|
|
|
|
# Must be comma separated list.
|
2024-01-05 10:42:55 +00:00
|
|
|
additionalimagestores = [
|
|
|
|
]
|
2021-01-20 20:16:15 +00:00
|
|
|
|
2022-07-14 14:09:10 +00:00
|
|
|
# Allows specification of how storage is populated when pulling images. This
|
|
|
|
# option can speed the pulling process of images compressed with format
|
|
|
|
# zstd:chunked. Containers/storage looks for files within images that are being
|
|
|
|
# pulled from a container registry that were previously pulled to the host. It
|
|
|
|
# can copy or create a hard link to the existing file when it finds them,
|
|
|
|
# eliminating the need to pull them from the container registry. These options
|
|
|
|
# can deduplicate pulling of content, disk storage of content and can allow the
|
|
|
|
# kernel to use less memory when running containers.
|
|
|
|
|
2024-07-29 08:52:48 +00:00
|
|
|
# containers/storage supports four keys
|
2022-07-14 14:09:10 +00:00
|
|
|
# * enable_partial_images="true" | "false"
|
|
|
|
# Tells containers/storage to look for files previously pulled in storage
|
|
|
|
# rather then always pulling them from the container registry.
|
|
|
|
# * use_hard_links = "false" | "true"
|
|
|
|
# Tells containers/storage to use hard links rather then create new files in
|
|
|
|
# the image, if an identical file already existed in storage.
|
|
|
|
# * ostree_repos = ""
|
|
|
|
# Tells containers/storage where an ostree repository exists that might have
|
|
|
|
# previously pulled content which can be used when attempting to avoid
|
|
|
|
# pulling content from the container registry
|
2024-07-29 08:52:48 +00:00
|
|
|
# * convert_images = "false" | "true"
|
|
|
|
# If set to true, containers/storage will convert images to a
|
|
|
|
# format compatible with partial pulls in order to take advantage
|
|
|
|
# of local deduplication and hard linking. It is an expensive
|
|
|
|
# operation so it is not enabled by default.
|
2024-01-29 17:21:54 +00:00
|
|
|
pull_options = {enable_partial_images = "true", use_hard_links = "false", ostree_repos=""}
|
2022-07-14 14:09:10 +00:00
|
|
|
|
2021-01-20 20:16:15 +00:00
|
|
|
# Root-auto-userns-user is a user name which can be used to look up one or more UID/GID
|
|
|
|
# ranges in the /etc/subuid and /etc/subgid file. These ranges will be partitioned
|
|
|
|
# to containers configured to create automatically a user namespace. Containers
|
|
|
|
# configured to automatically create a user namespace can still overlap with containers
|
|
|
|
# having an explicit mapping set.
|
|
|
|
# This setting is ignored when running as rootless.
|
|
|
|
# root-auto-userns-user = "storage"
|
|
|
|
#
|
|
|
|
# Auto-userns-min-size is the minimum size for a user namespace created automatically.
|
|
|
|
# auto-userns-min-size=1024
|
|
|
|
#
|
2023-07-02 11:18:44 +00:00
|
|
|
# Auto-userns-max-size is the maximum size for a user namespace created automatically.
|
2021-01-20 20:16:15 +00:00
|
|
|
# auto-userns-max-size=65536
|
|
|
|
|
|
|
|
[storage.options.overlay]
|
|
|
|
# ignore_chown_errors can be set to allow a non privileged user running with
|
|
|
|
# a single UID within a user namespace to run containers. The user can pull
|
|
|
|
# and use any image even those with multiple uids. Note multiple UIDs will be
|
|
|
|
# squashed down to the default uid in the container. These images will have no
|
|
|
|
# separation between the users in the container. Only supported for the overlay
|
|
|
|
# and vfs drivers.
|
|
|
|
#ignore_chown_errors = "false"
|
|
|
|
|
2021-08-12 18:54:08 +00:00
|
|
|
# Inodes is used to set a maximum inodes of the container image.
|
|
|
|
# inodes = ""
|
|
|
|
|
2021-01-20 20:16:15 +00:00
|
|
|
# Path to an helper program to use for mounting the file system instead of mounting it
|
|
|
|
# directly.
|
|
|
|
#mount_program = "/usr/bin/fuse-overlayfs"
|
|
|
|
|
|
|
|
# mountopt specifies comma separated list of extra mount options
|
|
|
|
mountopt = "nodev,metacopy=on"
|
|
|
|
|
|
|
|
# Set to skip a PRIVATE bind mount on the storage home directory.
|
|
|
|
# skip_mount_home = "false"
|
|
|
|
|
2024-01-05 10:42:55 +00:00
|
|
|
# Set to use composefs to mount data layers with overlay.
|
|
|
|
# use_composefs = "false"
|
|
|
|
|
2021-01-20 20:16:15 +00:00
|
|
|
# Size is used to set a maximum size of the container image.
|
|
|
|
# size = ""
|
|
|
|
|
|
|
|
# ForceMask specifies the permissions mask that is used for new files and
|
|
|
|
# directories.
|
|
|
|
#
|
|
|
|
# The values "shared" and "private" are accepted.
|
|
|
|
# Octal permission masks are also accepted.
|
|
|
|
#
|
|
|
|
# "": No value specified.
|
|
|
|
# All files/directories, get set with the permissions identified within the
|
|
|
|
# image.
|
|
|
|
# "private": it is equivalent to 0700.
|
|
|
|
# All files/directories get set with 0700 permissions. The owner has rwx
|
|
|
|
# access to the files. No other users on the system can access the files.
|
|
|
|
# This setting could be used with networked based homedirs.
|
|
|
|
# "shared": it is equivalent to 0755.
|
|
|
|
# The owner has rwx access to the files and everyone else can read, access
|
|
|
|
# and execute them. This setting is useful for sharing containers storage
|
|
|
|
# with other users. For instance have a storage owned by root but shared
|
|
|
|
# to rootless users as an additional store.
|
|
|
|
# NOTE: All files within the image are made readable and executable by any
|
|
|
|
# user on the system. Even /etc/shadow within your image is now readable by
|
|
|
|
# any user.
|
|
|
|
#
|
|
|
|
# OCTAL: Users can experiment with other OCTAL Permissions.
|
|
|
|
#
|
|
|
|
# Note: The force_mask Flag is an experimental feature, it could change in the
|
|
|
|
# future. When "force_mask" is set the original permission mask is stored in
|
|
|
|
# the "user.containers.override_stat" xattr and the "mount_program" option must
|
|
|
|
# be specified. Mount programs like "/usr/bin/fuse-overlayfs" present the
|
2022-08-10 12:50:23 +00:00
|
|
|
# extended attribute permissions to processes within containers rather than the
|
2021-01-20 20:16:15 +00:00
|
|
|
# "force_mask" permissions.
|
|
|
|
#
|
|
|
|
# force_mask = ""
|