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