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