20884f
# The containers configuration file specifies all of the available configuration
20884f
# command-line options/flags for container engine tools like Podman & Buildah,
20884f
# but in a TOML format that can be easily modified and versioned.
20884f
20884f
# Please refer to containers.conf(5) for details of all configuration options.
20884f
# Not all container engines implement all of the options.
20884f
# All of the options have hard coded defaults and these options will override
20884f
# the built in defaults. Users can then override these options via the command
20884f
# line. Container engines will read containers.conf files in up to three
20884f
# locations in the following order:
20884f
#  1. /usr/share/containers/containers.conf
20884f
#  2. /etc/containers/containers.conf
20884f
#  3. $HOME/.config/containers/containers.conf (Rootless containers ONLY)
20884f
#  Items specified in the latter containers.conf, if they exist, override the
20884f
# previous containers.conf settings, or the default settings.
20884f
20884f
[containers]
20884f
20884f
# List of devices. Specified as
20884f
# "<device-on-host>:<device-on-container>:<permissions>", for example:
20884f
# "/dev/sdc:/dev/xvdc:rwm".
20884f
# If it is empty or commented out, only the default devices will be used
20884f
#
20884f
# devices = []
20884f
20884f
# List of volumes. Specified as
20884f
# "<directory-on-host>:<directory-in-container>:<options>", for example:
20884f
# "/db:/var/lib/db:ro".
20884f
# If it is empty or commented out, no volumes will be added
20884f
#
20884f
# volumes = []
20884f
20884f
# Used to change the name of the default AppArmor profile of container engine.
20884f
#
20884f
# apparmor_profile = "container-default"
20884f
20884f
# List of annotation. Specified as
20884f
# "key=value"
20884f
# If it is empty or commented out, no annotations will be added
20884f
#
20884f
# annotations = []
20884f
20884f
# Default way to to create a cgroup namespace for the container
20884f
# Options are:
20884f
# `private` Create private Cgroup Namespace for the container.
20884f
# `host`    Share host Cgroup Namespace with the container.
20884f
#
20884f
# cgroupns = "private"
20884f
20884f
# Control container cgroup configuration
20884f
# Determines  whether  the  container will create CGroups.
20884f
# Options are:
20884f
# `enabled`   Enable cgroup support within container
20884f
# `disabled`  Disable cgroup support, will inherit cgroups from parent
20884f
# `no-conmon` Do not create a cgroup dedicated to conmon.
20884f
#
20884f
# cgroups = "enabled"
20884f
20884f
# List of default capabilities for containers. If it is empty or commented out,
20884f
# the default capabilities defined in the container engine will be added.
20884f
#
20884f
default_capabilities = [
20884f
    "NET_RAW",
20884f
    "CHOWN",
20884f
    "DAC_OVERRIDE",
20884f
    "FOWNER",
20884f
    "FSETID",
20884f
    "KILL",
20884f
    "NET_BIND_SERVICE",
20884f
    "SETFCAP",
20884f
    "SETGID",
20884f
    "SETPCAP",
20884f
    "SETUID",
20884f
    "SYS_CHROOT"
20884f
]
20884f
20884f
20884f
# A list of sysctls to be set in containers by default,
20884f
# specified as "name=value",
20884f
# for example:"net.ipv4.ping_group_range = 0 0".
20884f
#
20884f
default_sysctls = [
20884f
 "net.ipv4.ping_group_range=0 0",
20884f
]
20884f
20884f
# A list of ulimits to be set in containers by default, specified as
20884f
# "<ulimit name>=<soft limit>:<hard limit>", for example:
20884f
# "nofile=1024:2048"
20884f
# See setrlimit(2) for a list of resource names.
20884f
# Any limit not specified here will be inherited from the process launching the
20884f
# container engine.
20884f
# Ulimits has limits for non privileged container engines.
20884f
#
20884f
# default_ulimits = [
20884f
#  "nofile=1280:2560",
20884f
# ]
20884f
20884f
# List of default DNS options to be added to /etc/resolv.conf inside of the container.
20884f
#
20884f
# dns_options = []
20884f
20884f
# List of default DNS search domains to be added to /etc/resolv.conf inside of the container.
20884f
#
20884f
# dns_searches = []
20884f
20884f
# Set default DNS servers.
20884f
# This option can be used to override the DNS configuration passed to the
20884f
# container. The special value "none" can be specified to disable creation of
20884f
# /etc/resolv.conf in the container.
20884f
# The /etc/resolv.conf file in the image will be used without changes.
20884f
#
20884f
# dns_servers = []
20884f
20884f
# Environment variable list for the conmon process; used for passing necessary
20884f
# environment variables to conmon or the runtime.
20884f
#
20884f
# env = [
20884f
#    "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
20884f
#    "TERM=xterm",
20884f
# ]
20884f
20884f
# Pass all host environment variables into the container.
20884f
#
20884f
# env_host = false
20884f
20884f
# Default proxy environment variables passed into the container.
20884f
# The environment variables passed in include:
20884f
# http_proxy, https_proxy, ftp_proxy, no_proxy, and the upper case versions of
20884f
# these. This option is needed when host system uses a proxy but container
20884f
# should not use proxy. Proxy environment variables specified for the container
20884f
# in any other way will override the values passed from the host.
20884f
#
20884f
# http_proxy = true
20884f
20884f
# Run an init inside the container that forwards signals and reaps processes.
20884f
#
20884f
# init = false
20884f
20884f
#  Container init binary, if init=true, this is the init binary to be used for containers.
20884f
#
20884f
# init_path = "/usr/libexec/podman/catatonit"
20884f
20884f
# Default way to to create an IPC namespace (POSIX SysV IPC) for the container
20884f
# Options are:
20884f
# `private` Create private IPC Namespace for the container.
20884f
# `host`    Share host IPC Namespace with the container.
20884f
#
20884f
# ipcns = "private"
20884f
20884f
# keyring tells the container engine whether to create
20884f
# a kernel keyring for use within the container.
20884f
# keyring = true
20884f
20884f
# label tells the container engine whether to use container separation using
20884f
# MAC(SELinux) labeling or not.
20884f
# The label flag is ignored on label disabled systems.
20884f
#
20884f
# label = true
20884f
20884f
# Logging driver for the container. Available options: k8s-file and journald.
20884f
#
20884f
# log_driver = "k8s-file"
20884f
20884f
# Maximum size allowed for the container log file. Negative numbers indicate
20884f
# that no size limit is imposed. If positive, it must be >= 8192 to match or
20884f
# exceed conmon's read buffer. The file is truncated and re-opened so the
20884f
# limit is never exceeded.
20884f
#
20884f
# log_size_max = -1
20884f
20884f
# Default way to to create a Network namespace for the container
20884f
# Options are:
20884f
# `private` Create private Network Namespace for the container.
20884f
# `host`    Share host Network Namespace with the container.
20884f
# `none`    Containers do not use the network
20884f
#
20884f
# netns = "private"
20884f
20884f
# Create /etc/hosts for the container.  By default, container engine manage
20884f
# /etc/hosts, automatically adding  the container's  own  IP  address.
20884f
#
20884f
# no_hosts = false
20884f
20884f
# Maximum number of processes allowed in a container.
20884f
#
20884f
# pids_limit = 2048
20884f
20884f
# Default way to to create a PID namespace for the container
20884f
# Options are:
20884f
# `private` Create private PID Namespace for the container.
20884f
# `host`    Share host PID Namespace with the container.
20884f
#
20884f
# pidns = "private"
20884f
20884f
# Path to the seccomp.json profile which is used as the default seccomp profile
20884f
# for the runtime.
20884f
#
20884f
# seccomp_profile = "/usr/share/containers/seccomp.json"
20884f
20884f
# Size of /dev/shm. Specified as <number><unit>.
20884f
# Unit is optional, values:
20884f
# b (bytes), k (kilobytes), m (megabytes), or g (gigabytes).
20884f
# If the unit is omitted, the system uses bytes.
20884f
#
20884f
# shm_size = "65536k"
20884f
20884f
# Set timezone in container. Takes IANA timezones as well as "local",
20884f
# which sets the timezone in the container to match the host machine.
20884f
#
20884f
# tz = ""
20884f
20884f
# Set umask inside the container
20884f
#
20884f
# umask="0022"
20884f
20884f
# Default way to to create a UTS namespace for the container
20884f
# Options are:
20884f
# `private`        Create private UTS Namespace for the container.
20884f
# `host`    Share host UTS Namespace with the container.
20884f
#
20884f
# utsns = "private"
20884f
20884f
# Default way to to create a User namespace for the container
20884f
# Options are:
20884f
# `auto`        Create unique User Namespace for the container.
20884f
# `host`    Share host User Namespace with the container.
20884f
#
20884f
# userns = "host"
20884f
20884f
# Number of UIDs to allocate for the automatic container creation.
20884f
# UIDs are allocated from the "container" UIDs listed in
20884f
# /etc/subuid & /etc/subgid
20884f
#
20884f
# userns_size=65536
20884f
20884f
# The network table contains settings pertaining to the management of
20884f
# CNI plugins.
20884f
20884f
[network]
20884f
20884f
# Path to directory where CNI plugin binaries are located.
20884f
#
20884f
# cni_plugin_dirs = ["/usr/libexec/cni"]
20884f
20884f
# Path to the directory where CNI configuration files are located.
20884f
#
20884f
# network_config_dir = "/etc/cni/net.d/"
20884f
20884f
[engine]
20884f
# ImageBuildFormat indicates the default image format to building
20884f
# container images. Valid values are "oci" (default) or "docker".
20884f
# image_build_format = "oci"
20884f
20884f
# Cgroup management implementation used for the runtime.
20884f
# Valid options "systemd" or "cgroupfs"
20884f
#
20884f
# cgroup_manager = "systemd"
20884f
20884f
# Environment variables to pass into conmon
20884f
#
20884f
# conmon_env_vars = [
20884f
#        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
20884f
# ]
20884f
20884f
# Paths to look for the conmon container manager binary
20884f
#
20884f
# conmon_path = [
20884f
#        "/usr/libexec/podman/conmon",
20884f
#        "/usr/local/libexec/podman/conmon",
20884f
#        "/usr/local/lib/podman/conmon",
20884f
#        "/usr/bin/conmon",
20884f
#        "/usr/sbin/conmon",
20884f
#        "/usr/local/bin/conmon",
20884f
#        "/usr/local/sbin/conmon"
20884f
# ]
20884f
20884f
# Specify the keys sequence used to detach a container.
20884f
# Format is a single character [a-Z] or a comma separated sequence of
20884f
# `ctrl-<value>`, where `<value>` is one of:
20884f
# `a-z`, `@`, `^`, `[`, `\`, `]`, `^` or `_`
20884f
#
20884f
# detach_keys = "ctrl-p,ctrl-q"
20884f
20884f
# Determines whether engine will reserve ports on the host when they are
20884f
# forwarded to containers. When enabled, when ports are forwarded to containers,
20884f
# ports are held open by as long as the container is running, ensuring that
20884f
# they cannot be reused by other programs on the host. However, this can cause
20884f
# significant memory usage if a container has many ports forwarded to it.
20884f
# Disabling this can save memory.
20884f
#
20884f
# enable_port_reservation = true
20884f
20884f
# Environment variables to be used when running the container engine (e.g., Podman, Buildah).
20884f
# For example "http_proxy=internal.proxy.company.com".
20884f
# Note these environment variables will not be used within the container.
20884f
# Set the env section under [containers] table, if you want to set environment variables for the container.
20884f
# env = []
20884f
20884f
# Selects which logging mechanism to use for container engine events.
20884f
# Valid values are `journald`, `file` and `none`.
20884f
#
20884f
events_logger = "file"
20884f
20884f
# Path to OCI hooks directories for automatically executed hooks.
20884f
#
20884f
# hooks_dir = [
20884f
#     "/usr/share/containers/oci/hooks.d",
20884f
# ]
20884f
20884f
# Default transport method for pulling and pushing for images
20884f
#
20884f
# image_default_transport = "docker://"
20884f
20884f
# Default command to run the infra container
20884f
#
20884f
# infra_command = "/pause"
20884f
20884f
# Infra (pause) container image name for pod infra containers.  When running a
20884f
# pod, we start a `pause` process in a container to hold open the namespaces
20884f
# associated with the  pod.  This container does nothing other then sleep,
20884f
# reserving the pods resources for the lifetime of the pod.
20884f
#
20884f
# infra_image = "k8s.gcr.io/pause:3.2"
20884f
infra_image = "registry.access.redhat.com/ubi8/pause"
20884f
20884f
# Specify the locking mechanism to use; valid values are "shm" and "file".
20884f
# Change the default only if you are sure of what you are doing, in general
20884f
# "file" is useful only on platforms where cgo is not available for using the
20884f
# faster "shm" lock type.  You may need to run "podman system renumber" after
20884f
# you change the lock type.
20884f
#
20884f
# lock_type** = "shm"
20884f
20884f
# MultiImageArchive - if true, the container engine allows for storing archives
20884f
# (e.g., of the docker-archive transport) with multiple images.  By default,
20884f
# Podman creates single-image archives.
20884f
#
20884f
# multi_image_archive = "false"
20884f
20884f
# Default engine namespace
20884f
# If engine is joined to a namespace, it will see only containers and pods
20884f
# that were created in the same namespace, and will create new containers and
20884f
# pods in that namespace.
20884f
# The default namespace is "", which corresponds to no namespace. When no
20884f
# namespace is set, all containers and pods are visible.
20884f
#
20884f
# namespace = ""
20884f
20884f
# Path to the slirp4netns binary
20884f
#
20884f
# network_cmd_path=""
20884f
20884f
# Default options to pass to the slirp4netns binary.
20884f
# For example "allow_host_loopback=true"
20884f
#
20884f
# network_cmd_options=[]
20884f
20884f
# Whether to use chroot instead of pivot_root in the runtime
20884f
#
20884f
# no_pivot_root = false
20884f
20884f
# Number of locks available for containers and pods.
20884f
# If this is changed, a lock renumber must be performed (e.g. with the
20884f
# 'podman system renumber' command).
20884f
#
20884f
# num_locks = 2048
20884f
20884f
# Whether to pull new image before running a container
20884f
# pull_policy = "missing"
20884f
20884f
# Indicates whether the application should be running in remote mode. This flag modifies the
20884f
# --remote option on container engines. Setting the flag to true will default
20884f
# `podman --remote=true` for access to the remote Podman service.
20884f
# remote = false
20884f
20884f
# Directory for persistent engine files (database, etc)
20884f
# By default, this will be configured relative to where the containers/storage
20884f
# stores containers
20884f
# Uncomment to change location from this default
20884f
#
20884f
# static_dir = "/var/lib/containers/storage/libpod"
20884f
20884f
# Directory for temporary files. Must be tmpfs (wiped after reboot)
20884f
#
20884f
# tmp_dir = "/run/libpod"
20884f
20884f
# Directory for libpod named volumes.
20884f
# By default, this will be configured relative to where containers/storage
20884f
# stores containers.
20884f
# Uncomment to change location from this default.
20884f
#
20884f
# volume_path = "/var/lib/containers/storage/volumes"
20884f
20884f
# Default OCI runtime
20884f
#
20884f
runtime = "runc"
20884f
20884f
# List of the OCI runtimes that support --format=json.  When json is supported
20884f
# engine will use it for reporting nicer errors.
20884f
#
20884f
# runtime_supports_json = ["crun", "runc", "kata"]
20884f
20884f
# List of the OCI runtimes that supports running containers without cgroups.
20884f
#
20884f
# runtime_supports_nocgroups = ["crun"]
20884f
20884f
# List of the OCI runtimes that supports running containers with KVM Separation.
20884f
#
20884f
# runtime_supports_kvm = ["kata"]
20884f
20884f
# Number of seconds to wait for container to exit before sending kill signal.
20884f
# stop_timeout = 10
20884f
20884f
# Index to the active service
20884f
# active_service = production
20884f
20884f
# map of service destinations
20884f
# [service_destinations]
20884f
#   [service_destinations.production]
20884f
#     URI to access the Podman service
20884f
#     Examples:
20884f
#       rootless "unix://run/user/$UID/podman/podman.sock" (Default)
20884f
#       rootfull "unix://run/podman/podman.sock (Default)
20884f
#       remote rootless ssh://engineering.lab.company.com/run/user/1000/podman/podman.sock
20884f
#       remote rootfull ssh://root@10.10.1.136:22/run/podman/podman.sock
20884f
#     uri="ssh://user@production.example.com/run/user/1001/podman/podman.sock"
20884f
#     Path to file containing ssh identity key
20884f
#     identity = "~/.ssh/id_rsa"
20884f
20884f
# Paths to look for a valid OCI runtime (crun, runc, kata, etc)
20884f
[engine.runtimes]
20884f
# crun = [
20884f
#            "/usr/bin/crun",
20884f
#            "/usr/sbin/crun",
20884f
#            "/usr/local/bin/crun",
20884f
#            "/usr/local/sbin/crun",
20884f
#            "/sbin/crun",
20884f
#            "/bin/crun",
20884f
#            "/run/current-system/sw/bin/crun",
20884f
# ]
20884f
20884f
# runc = [
20884f
#        "/usr/bin/runc",
20884f
#        "/usr/sbin/runc",
20884f
#        "/usr/local/bin/runc",
20884f
#        "/usr/local/sbin/runc",
20884f
#        "/sbin/runc",
20884f
#        "/bin/runc",
20884f
#        "/usr/lib/cri-o-runc/sbin/runc",
20884f
# ]
20884f
20884f
# kata = [
20884f
#            "/usr/bin/kata-runtime",
20884f
#            "/usr/sbin/kata-runtime",
20884f
#            "/usr/local/bin/kata-runtime",
20884f
#            "/usr/local/sbin/kata-runtime",
20884f
#            "/sbin/kata-runtime",
20884f
#            "/bin/kata-runtime",
20884f
#            "/usr/bin/kata-qemu",
20884f
#            "/usr/bin/kata-fc",
20884f
# ]
20884f
20884f
[engine.volume_plugins]
20884f
# testplugin = "/run/podman/plugins/test.sock"
20884f
20884f
# The [engine.volume_plugins] table MUST be the last entry in this file.
20884f
# (Unless another table is added)
20884f
# TOML does not provide a way to end a table other than a further table being
20884f
# defined, so every key hereafter will be part of [volume_plugins] and not the
20884f
# main config.