|
|
5dd126 |
# The containers configuration file specifies all of the available configuration
|
|
|
5dd126 |
# command-line options/flags for container engine tools like Podman & Buildah,
|
|
|
5dd126 |
# but in a TOML format that can be easily modified and versioned.
|
|
|
5dd126 |
|
|
|
5dd126 |
# Please refer to containers.conf(5) for details of all configuration options.
|
|
|
5dd126 |
# Not all container engines implement all of the options.
|
|
|
5dd126 |
# All of the options have hard coded defaults and these options will override
|
|
|
5dd126 |
# the built in defaults. Users can then override these options via the command
|
|
|
5dd126 |
# line. Container engines will read containers.conf files in up to three
|
|
|
5dd126 |
# locations in the following order:
|
|
|
5dd126 |
# 1. /usr/share/containers/containers.conf
|
|
|
5dd126 |
# 2. /etc/containers/containers.conf
|
|
|
5dd126 |
# 3. $HOME/.config/containers/containers.conf (Rootless containers ONLY)
|
|
|
5dd126 |
# Items specified in the latter containers.conf, if they exist, override the
|
|
|
5dd126 |
# previous containers.conf settings, or the default settings.
|
|
|
5dd126 |
|
|
|
5dd126 |
[containers]
|
|
|
5dd126 |
|
|
|
5dd126 |
# List of annotation. Specified as
|
|
|
5dd126 |
# "key = value"
|
|
|
5dd126 |
# If it is empty or commented out, no annotations will be added
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#annotations = []
|
|
|
5dd126 |
|
|
|
5dd126 |
# Used to change the name of the default AppArmor profile of container engine.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#apparmor_profile = "container-default"
|
|
|
5dd126 |
|
|
|
2b1b9b |
# The hosts entries from the base hosts file are added to the containers hosts
|
|
|
2b1b9b |
# file. This must be either an absolute path or as special values "image" which
|
|
|
2b1b9b |
# uses the hosts file from the container image or "none" which means
|
|
|
2b1b9b |
# no base hosts file is used. The default is "" which will use /etc/hosts.
|
|
|
2b1b9b |
#
|
|
|
2b1b9b |
#base_hosts_file = ""
|
|
|
2b1b9b |
|
|
|
5dd126 |
# Default way to to create a cgroup namespace for the container
|
|
|
5dd126 |
# Options are:
|
|
|
5dd126 |
# `private` Create private Cgroup Namespace for the container.
|
|
|
5dd126 |
# `host` Share host Cgroup Namespace with the container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#cgroupns = "private"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Control container cgroup configuration
|
|
|
5dd126 |
# Determines whether the container will create CGroups.
|
|
|
5dd126 |
# Options are:
|
|
|
5dd126 |
# `enabled` Enable cgroup support within container
|
|
|
5dd126 |
# `disabled` Disable cgroup support, will inherit cgroups from parent
|
|
|
5dd126 |
# `no-conmon` Do not create a cgroup dedicated to conmon.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#cgroups = "enabled"
|
|
|
5dd126 |
|
|
|
5dd126 |
# List of default capabilities for containers. If it is empty or commented out,
|
|
|
5dd126 |
# the default capabilities defined in the container engine will be added.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
default_capabilities = [
|
|
|
c929c0 |
"NET_RAW",
|
|
|
5dd126 |
"CHOWN",
|
|
|
5dd126 |
"DAC_OVERRIDE",
|
|
|
5dd126 |
"FOWNER",
|
|
|
5dd126 |
"FSETID",
|
|
|
5dd126 |
"KILL",
|
|
|
5dd126 |
"NET_BIND_SERVICE",
|
|
|
5dd126 |
"SETFCAP",
|
|
|
5dd126 |
"SETGID",
|
|
|
5dd126 |
"SETPCAP",
|
|
|
5dd126 |
"SETUID",
|
|
|
5dd126 |
]
|
|
|
5dd126 |
|
|
|
5dd126 |
# A list of sysctls to be set in containers by default,
|
|
|
5dd126 |
# specified as "name=value",
|
|
|
21a30b |
# for example:"net.ipv4.ping_group_range=0 0".
|
|
|
5dd126 |
#
|
|
|
5dd126 |
default_sysctls = [
|
|
|
5dd126 |
"net.ipv4.ping_group_range=0 0",
|
|
|
5dd126 |
]
|
|
|
5dd126 |
|
|
|
5dd126 |
# A list of ulimits to be set in containers by default, specified as
|
|
|
5dd126 |
# "<ulimit name>=<soft limit>:<hard limit>", for example:
|
|
|
5dd126 |
# "nofile=1024:2048"
|
|
|
5dd126 |
# See setrlimit(2) for a list of resource names.
|
|
|
5dd126 |
# Any limit not specified here will be inherited from the process launching the
|
|
|
5dd126 |
# container engine.
|
|
|
5dd126 |
# Ulimits has limits for non privileged container engines.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#default_ulimits = [
|
|
|
5dd126 |
# "nofile=1280:2560",
|
|
|
5dd126 |
#]
|
|
|
5dd126 |
|
|
|
5dd126 |
# List of devices. Specified as
|
|
|
5dd126 |
# "<device-on-host>:<device-on-container>:<permissions>", for example:
|
|
|
5dd126 |
# "/dev/sdc:/dev/xvdc:rwm".
|
|
|
5dd126 |
# If it is empty or commented out, only the default devices will be used
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#devices = []
|
|
|
5dd126 |
|
|
|
5dd126 |
# List of default DNS options to be added to /etc/resolv.conf inside of the container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#dns_options = []
|
|
|
5dd126 |
|
|
|
5dd126 |
# List of default DNS search domains to be added to /etc/resolv.conf inside of the container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#dns_searches = []
|
|
|
5dd126 |
|
|
|
5dd126 |
# Set default DNS servers.
|
|
|
5dd126 |
# This option can be used to override the DNS configuration passed to the
|
|
|
5dd126 |
# container. The special value "none" can be specified to disable creation of
|
|
|
5dd126 |
# /etc/resolv.conf in the container.
|
|
|
5dd126 |
# The /etc/resolv.conf file in the image will be used without changes.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#dns_servers = []
|
|
|
5dd126 |
|
|
|
5dd126 |
# Environment variable list for the conmon process; used for passing necessary
|
|
|
5dd126 |
# environment variables to conmon or the runtime.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#env = [
|
|
|
5dd126 |
# "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
|
|
5dd126 |
# "TERM=xterm",
|
|
|
5dd126 |
#]
|
|
|
5dd126 |
|
|
|
5dd126 |
# Pass all host environment variables into the container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#env_host = false
|
|
|
5dd126 |
|
|
|
2b1b9b |
# Set the ip for the host.containers.internal entry in the containers /etc/hosts
|
|
|
2b1b9b |
# file. This can be set to "none" to disable adding this entry. By default it
|
|
|
2b1b9b |
# will automatically choose the host ip.
|
|
|
2b1b9b |
#
|
|
|
2b1b9b |
# NOTE: When using podman machine this entry will never be added to the containers
|
|
|
2b1b9b |
# hosts file instead the gvproxy dns resolver will resolve this hostname. Therefore
|
|
|
2b1b9b |
# it is not possible to disable the entry in this case.
|
|
|
2b1b9b |
#
|
|
|
2b1b9b |
#host_containers_internal_ip = ""
|
|
|
2b1b9b |
|
|
|
5dd126 |
# Default proxy environment variables passed into the container.
|
|
|
5dd126 |
# The environment variables passed in include:
|
|
|
5dd126 |
# http_proxy, https_proxy, ftp_proxy, no_proxy, and the upper case versions of
|
|
|
5dd126 |
# these. This option is needed when host system uses a proxy but container
|
|
|
5dd126 |
# should not use proxy. Proxy environment variables specified for the container
|
|
|
5dd126 |
# in any other way will override the values passed from the host.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#http_proxy = true
|
|
|
5dd126 |
|
|
|
5dd126 |
# Run an init inside the container that forwards signals and reaps processes.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#init = false
|
|
|
5dd126 |
|
|
|
5dd126 |
# Container init binary, if init=true, this is the init binary to be used for containers.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#init_path = "/usr/libexec/podman/catatonit"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Default way to to create an IPC namespace (POSIX SysV IPC) for the container
|
|
|
5dd126 |
# Options are:
|
|
|
2b1b9b |
# "host" Share host IPC Namespace with the container.
|
|
|
2b1b9b |
# "none" Create shareable IPC Namespace for the container without a private /dev/shm.
|
|
|
2b1b9b |
# "private" Create private IPC Namespace for the container, other containers are not allowed to share it.
|
|
|
2b1b9b |
# "shareable" Create shareable IPC Namespace for the container.
|
|
|
5dd126 |
#
|
|
|
2b1b9b |
#ipcns = "shareable"
|
|
|
5dd126 |
|
|
|
5dd126 |
# keyring tells the container engine whether to create
|
|
|
5dd126 |
# a kernel keyring for use within the container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#keyring = true
|
|
|
5dd126 |
|
|
|
5dd126 |
# label tells the container engine whether to use container separation using
|
|
|
5dd126 |
# MAC(SELinux) labeling or not.
|
|
|
5dd126 |
# The label flag is ignored on label disabled systems.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#label = true
|
|
|
5dd126 |
|
|
|
5dd126 |
# Logging driver for the container. Available options: k8s-file and journald.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#log_driver = "k8s-file"
|
|
|
21a30b |
log_driver = "k8s-file"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Maximum size allowed for the container log file. Negative numbers indicate
|
|
|
5dd126 |
# that no size limit is imposed. If positive, it must be >= 8192 to match or
|
|
|
5dd126 |
# exceed conmon's read buffer. The file is truncated and re-opened so the
|
|
|
5dd126 |
# limit is never exceeded.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#log_size_max = -1
|
|
|
5dd126 |
|
|
|
5dd126 |
# Specifies default format tag for container log messages.
|
|
|
5dd126 |
# This is useful for creating a specific tag for container log messages.
|
|
|
5dd126 |
# Containers logs default to truncated container ID as a tag.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#log_tag = ""
|
|
|
5dd126 |
|
|
|
5dd126 |
# Default way to to create a Network namespace for the container
|
|
|
5dd126 |
# Options are:
|
|
|
5dd126 |
# `private` Create private Network Namespace for the container.
|
|
|
5dd126 |
# `host` Share host Network Namespace with the container.
|
|
|
5dd126 |
# `none` Containers do not use the network
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#netns = "private"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Create /etc/hosts for the container. By default, container engine manage
|
|
|
5dd126 |
# /etc/hosts, automatically adding the container's own IP address.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#no_hosts = false
|
|
|
5dd126 |
|
|
|
5dd126 |
# Default way to to create a PID namespace for the container
|
|
|
5dd126 |
# Options are:
|
|
|
5dd126 |
# `private` Create private PID Namespace for the container.
|
|
|
5dd126 |
# `host` Share host PID Namespace with the container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#pidns = "private"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Maximum number of processes allowed in a container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#pids_limit = 2048
|
|
|
5dd126 |
|
|
|
5dd126 |
# Copy the content from the underlying image into the newly created volume
|
|
|
5dd126 |
# when the container is created instead of when it is started. If false,
|
|
|
5dd126 |
# the container engine will not copy the content until the container is started.
|
|
|
5dd126 |
# Setting it to true may have negative performance implications.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#prepare_volume_on_create = false
|
|
|
5dd126 |
|
|
|
c929c0 |
# Run all containers with root file system mounted read-only
|
|
|
c929c0 |
#
|
|
|
c929c0 |
# read_only = false
|
|
|
c929c0 |
|
|
|
5dd126 |
# Path to the seccomp.json profile which is used as the default seccomp profile
|
|
|
5dd126 |
# for the runtime.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#seccomp_profile = "/usr/share/containers/seccomp.json"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Size of /dev/shm. Specified as <number><unit>.
|
|
|
5dd126 |
# Unit is optional, values:
|
|
|
5dd126 |
# b (bytes), k (kilobytes), m (megabytes), or g (gigabytes).
|
|
|
5dd126 |
# If the unit is omitted, the system uses bytes.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#shm_size = "65536k"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Set timezone in container. Takes IANA timezones as well as "local",
|
|
|
5dd126 |
# which sets the timezone in the container to match the host machine.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#tz = ""
|
|
|
5dd126 |
|
|
|
5dd126 |
# Set umask inside the container
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#umask = "0022"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Default way to to create a User namespace for the container
|
|
|
5dd126 |
# Options are:
|
|
|
5dd126 |
# `auto` Create unique User Namespace for the container.
|
|
|
5dd126 |
# `host` Share host User Namespace with the container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#userns = "host"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Default way to to create a UTS namespace for the container
|
|
|
5dd126 |
# Options are:
|
|
|
5dd126 |
# `private` Create private UTS Namespace for the container.
|
|
|
5dd126 |
# `host` Share host UTS Namespace with the container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#utsns = "private"
|
|
|
5dd126 |
|
|
|
5dd126 |
# List of volumes. Specified as
|
|
|
5dd126 |
# "<directory-on-host>:<directory-in-container>:<options>", for example:
|
|
|
5dd126 |
# "/db:/var/lib/db:ro".
|
|
|
5dd126 |
# If it is empty or commented out, no volumes will be added
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#volumes = []
|
|
|
c929c0 |
#
|
|
|
c929c0 |
#[engine.platform_to_oci_runtime]
|
|
|
c929c0 |
#"wasi/wasm" = ["crun-wasm"]
|
|
|
c929c0 |
#"wasi/wasm32" = ["crun-wasm"]
|
|
|
c929c0 |
#"wasi/wasm64" = ["crun-wasm"]
|
|
|
5dd126 |
|
|
|
5dd126 |
[secrets]
|
|
|
5dd126 |
#driver = "file"
|
|
|
5dd126 |
|
|
|
5dd126 |
[secrets.opts]
|
|
|
5dd126 |
#root = "/example/directory"
|
|
|
5dd126 |
|
|
|
5dd126 |
[network]
|
|
|
5dd126 |
|
|
|
e2e81a |
# Network backend determines what network driver will be used to set up and tear down container networks.
|
|
|
e2e81a |
# Valid values are "cni" and "netavark".
|
|
|
e2e81a |
# The default value is empty which means that it will automatically choose CNI or netavark. If there are
|
|
|
e2e81a |
# already containers/images or CNI networks preset it will choose CNI.
|
|
|
e2e81a |
#
|
|
|
e2e81a |
# Before changing this value all containers must be stopped otherwise it is likely that
|
|
|
e2e81a |
# iptables rules and network interfaces might leak on the host. A reboot will fix this.
|
|
|
e2e81a |
#
|
|
|
e2e81a |
#network_backend = ""
|
|
|
e2e81a |
network_backend = "cni"
|
|
|
e2e81a |
|
|
|
5dd126 |
# Path to directory where CNI plugin binaries are located.
|
|
|
5dd126 |
#
|
|
|
21a30b |
#cni_plugin_dirs = [
|
|
|
21a30b |
# "/usr/local/libexec/cni",
|
|
|
21a30b |
# "/usr/libexec/cni",
|
|
|
21a30b |
# "/usr/local/lib/cni",
|
|
|
21a30b |
# "/usr/lib/cni",
|
|
|
21a30b |
# "/opt/cni/bin",
|
|
|
21a30b |
#]
|
|
|
5dd126 |
|
|
|
e2e81a |
# The network name of the default network to attach pods to.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#default_network = "podman"
|
|
|
5dd126 |
|
|
|
e2e81a |
# The default subnet for the default network given in default_network.
|
|
|
5dd126 |
# If a network with that name does not exist, a new network using that name and
|
|
|
5dd126 |
# this subnet will be created.
|
|
|
5dd126 |
# Must be a valid IPv4 CIDR prefix.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#default_subnet = "10.88.0.0/16"
|
|
|
5dd126 |
|
|
|
2b1b9b |
# DefaultSubnetPools is a list of subnets and size which are used to
|
|
|
2b1b9b |
# allocate subnets automatically for podman network create.
|
|
|
2b1b9b |
# It will iterate through the list and will pick the first free subnet
|
|
|
2b1b9b |
# with the given size. This is only used for ipv4 subnets, ipv6 subnets
|
|
|
2b1b9b |
# are always assigned randomly.
|
|
|
2b1b9b |
#
|
|
|
2b1b9b |
#default_subnet_pools = [
|
|
|
2b1b9b |
# {"base" = "10.89.0.0/16", "size" = 24},
|
|
|
2b1b9b |
# {"base" = "10.90.0.0/15", "size" = 24},
|
|
|
2b1b9b |
# {"base" = "10.92.0.0/14", "size" = 24},
|
|
|
2b1b9b |
# {"base" = "10.96.0.0/11", "size" = 24},
|
|
|
2b1b9b |
# {"base" = "10.128.0.0/9", "size" = 24},
|
|
|
2b1b9b |
#]
|
|
|
2b1b9b |
|
|
|
e2e81a |
# Path to the directory where network configuration files are located.
|
|
|
e2e81a |
# For the CNI backend the default is "/etc/cni/net.d" as root
|
|
|
e2e81a |
# and "$HOME/.config/cni/net.d" as rootless.
|
|
|
e2e81a |
# For the netavark backend "/etc/containers/networks" is used as root
|
|
|
e2e81a |
# and "$graphroot/networks" as rootless.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#network_config_dir = "/etc/cni/net.d/"
|
|
|
5dd126 |
|
|
|
169ddb |
# Port to use for dns forwarding daemon with netavark in rootful bridge
|
|
|
169ddb |
# mode and dns enabled.
|
|
|
169ddb |
# Using an alternate port might be useful if other dns services should
|
|
|
169ddb |
# run on the machine.
|
|
|
169ddb |
#
|
|
|
169ddb |
#dns_bind_port = 53
|
|
|
169ddb |
|
|
|
5dd126 |
[engine]
|
|
|
5dd126 |
# Index to the active service
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#active_service = production
|
|
|
5dd126 |
|
|
|
e2e81a |
# The compression format to use when pushing an image.
|
|
|
e2e81a |
# Valid options are: `gzip`, `zstd` and `zstd:chunked`.
|
|
|
e2e81a |
#
|
|
|
e2e81a |
#compression_format = "gzip"
|
|
|
e2e81a |
|
|
|
e2e81a |
|
|
|
5dd126 |
# Cgroup management implementation used for the runtime.
|
|
|
5dd126 |
# Valid options "systemd" or "cgroupfs"
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#cgroup_manager = "systemd"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Environment variables to pass into conmon
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#conmon_env_vars = [
|
|
|
5dd126 |
# "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
5dd126 |
#]
|
|
|
5dd126 |
|
|
|
5dd126 |
# Paths to look for the conmon container manager binary
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#conmon_path = [
|
|
|
5dd126 |
# "/usr/libexec/podman/conmon",
|
|
|
5dd126 |
# "/usr/local/libexec/podman/conmon",
|
|
|
5dd126 |
# "/usr/local/lib/podman/conmon",
|
|
|
5dd126 |
# "/usr/bin/conmon",
|
|
|
5dd126 |
# "/usr/sbin/conmon",
|
|
|
5dd126 |
# "/usr/local/bin/conmon",
|
|
|
5dd126 |
# "/usr/local/sbin/conmon"
|
|
|
5dd126 |
#]
|
|
|
5dd126 |
|
|
|
e2e81a |
# Enforces using docker.io for completing short names in Podman's compatibility
|
|
|
e2e81a |
# REST API. Note that this will ignore unqualified-search-registries and
|
|
|
e2e81a |
# short-name aliases defined in containers-registries.conf(5).
|
|
|
e2e81a |
#compat_api_enforce_docker_hub = true
|
|
|
e2e81a |
|
|
|
5dd126 |
# Specify the keys sequence used to detach a container.
|
|
|
5dd126 |
# Format is a single character [a-Z] or a comma separated sequence of
|
|
|
5dd126 |
# `ctrl-<value>`, where `<value>` is one of:
|
|
|
5dd126 |
# `a-z`, `@`, `^`, `[`, `\`, `]`, `^` or `_`
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#detach_keys = "ctrl-p,ctrl-q"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Determines whether engine will reserve ports on the host when they are
|
|
|
5dd126 |
# forwarded to containers. When enabled, when ports are forwarded to containers,
|
|
|
5dd126 |
# ports are held open by as long as the container is running, ensuring that
|
|
|
5dd126 |
# they cannot be reused by other programs on the host. However, this can cause
|
|
|
5dd126 |
# significant memory usage if a container has many ports forwarded to it.
|
|
|
5dd126 |
# Disabling this can save memory.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#enable_port_reservation = true
|
|
|
5dd126 |
|
|
|
5dd126 |
# Environment variables to be used when running the container engine (e.g., Podman, Buildah).
|
|
|
5dd126 |
# For example "http_proxy=internal.proxy.company.com".
|
|
|
5dd126 |
# Note these environment variables will not be used within the container.
|
|
|
5dd126 |
# Set the env section under [containers] table, if you want to set environment variables for the container.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#env = []
|
|
|
5dd126 |
|
|
|
e2e81a |
# Define where event logs will be stored, when events_logger is "file".
|
|
|
e2e81a |
#events_logfile_path=""
|
|
|
e2e81a |
|
|
|
2b1b9b |
# Sets the maximum size for events_logfile_path.
|
|
|
2b1b9b |
# The size can be b (bytes), k (kilobytes), m (megabytes), or g (gigabytes).
|
|
|
2b1b9b |
# The format for the size is `<number><unit>`, e.g., `1b` or `3g`.
|
|
|
2b1b9b |
# If no unit is included then the size will be read in bytes.
|
|
|
2b1b9b |
# When the limit is exceeded, the logfile will be rotated and the old one will be deleted.
|
|
|
2b1b9b |
# If the maximum size is set to 0, then no limit will be applied,
|
|
|
2b1b9b |
# and the logfile will not be rotated.
|
|
|
2b1b9b |
#events_logfile_max_size = "1m"
|
|
|
2b1b9b |
|
|
|
5dd126 |
# Selects which logging mechanism to use for container engine events.
|
|
|
5dd126 |
# Valid values are `journald`, `file` and `none`.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#events_logger = "journald"
|
|
|
5dd126 |
events_logger = "file"
|
|
|
5dd126 |
|
|
|
c929c0 |
# Creates a more verbose container-create event which includes a JSON payload
|
|
|
c929c0 |
# with detailed information about the container.
|
|
|
c929c0 |
#events_container_create_inspect_data = false
|
|
|
c929c0 |
|
|
|
21a30b |
# A is a list of directories which are used to search for helper binaries.
|
|
|
21a30b |
#
|
|
|
21a30b |
#helper_binaries_dir = [
|
|
|
21a30b |
# "/usr/local/libexec/podman",
|
|
|
21a30b |
# "/usr/local/lib/podman",
|
|
|
21a30b |
# "/usr/libexec/podman",
|
|
|
21a30b |
# "/usr/lib/podman",
|
|
|
21a30b |
#]
|
|
|
21a30b |
|
|
|
5dd126 |
# Path to OCI hooks directories for automatically executed hooks.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#hooks_dir = [
|
|
|
5dd126 |
# "/usr/share/containers/oci/hooks.d",
|
|
|
5dd126 |
#]
|
|
|
5dd126 |
|
|
|
5dd126 |
# Manifest Type (oci, v2s2, or v2s1) to use when pulling, pushing, building
|
|
|
5dd126 |
# container images. By default image pulled and pushed match the format of the
|
|
|
5dd126 |
# source image. Building/committing defaults to OCI.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#image_default_format = ""
|
|
|
5dd126 |
|
|
|
5dd126 |
# Default transport method for pulling and pushing for images
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#image_default_transport = "docker://"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Maximum number of image layers to be copied (pulled/pushed) simultaneously.
|
|
|
5dd126 |
# Not setting this field, or setting it to zero, will fall back to containers/image defaults.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#image_parallel_copies = 0
|
|
|
5dd126 |
|
|
|
169ddb |
# Tells container engines how to handle the builtin image volumes.
|
|
|
169ddb |
# * bind: An anonymous named volume will be created and mounted
|
|
|
169ddb |
# into the container.
|
|
|
169ddb |
# * tmpfs: The volume is mounted onto the container as a tmpfs,
|
|
|
169ddb |
# which allows users to create content that disappears when
|
|
|
169ddb |
# the container is stopped.
|
|
|
169ddb |
# * ignore: All volumes are just ignored and no action is taken.
|
|
|
169ddb |
#
|
|
|
169ddb |
#image_volume_mode = ""
|
|
|
169ddb |
|
|
|
5dd126 |
# Default command to run the infra container
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#infra_command = "/pause"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Infra (pause) container image name for pod infra containers. When running a
|
|
|
5dd126 |
# pod, we start a `pause` process in a container to hold open the namespaces
|
|
|
5dd126 |
# associated with the pod. This container does nothing other then sleep,
|
|
|
e2e81a |
# reserving the pods resources for the lifetime of the pod. By default container
|
|
|
e2e81a |
# engines run a builtin container using the pause executable. If you want override
|
|
|
e2e81a |
# specify an image to pull.
|
|
|
5dd126 |
#
|
|
|
e2e81a |
#infra_image = ""
|
|
|
5dd126 |
|
|
|
5dd126 |
# Specify the locking mechanism to use; valid values are "shm" and "file".
|
|
|
5dd126 |
# Change the default only if you are sure of what you are doing, in general
|
|
|
5dd126 |
# "file" is useful only on platforms where cgo is not available for using the
|
|
|
e2e81a |
# faster "shm" lock type. You may need to run "podman system renumber" after
|
|
|
5dd126 |
# you change the lock type.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#lock_type** = "shm"
|
|
|
5dd126 |
|
|
|
5dd126 |
# MultiImageArchive - if true, the container engine allows for storing archives
|
|
|
5dd126 |
# (e.g., of the docker-archive transport) with multiple images. By default,
|
|
|
5dd126 |
# Podman creates single-image archives.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#multi_image_archive = "false"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Default engine namespace
|
|
|
5dd126 |
# If engine is joined to a namespace, it will see only containers and pods
|
|
|
5dd126 |
# that were created in the same namespace, and will create new containers and
|
|
|
5dd126 |
# pods in that namespace.
|
|
|
5dd126 |
# The default namespace is "", which corresponds to no namespace. When no
|
|
|
5dd126 |
# namespace is set, all containers and pods are visible.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#namespace = ""
|
|
|
5dd126 |
|
|
|
5dd126 |
# Path to the slirp4netns binary
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#network_cmd_path = ""
|
|
|
5dd126 |
|
|
|
5dd126 |
# Default options to pass to the slirp4netns binary.
|
|
|
2b1b9b |
# Valid options values are:
|
|
|
2b1b9b |
#
|
|
|
2b1b9b |
# - allow_host_loopback=true|false: Allow the slirp4netns to reach the host loopback IP (`10.0.2.2`).
|
|
|
2b1b9b |
# Default is false.
|
|
|
2b1b9b |
# - mtu=MTU: Specify the MTU to use for this network. (Default is `65520`).
|
|
|
2b1b9b |
# - cidr=CIDR: Specify ip range to use for this network. (Default is `10.0.2.0/24`).
|
|
|
2b1b9b |
# - enable_ipv6=true|false: Enable IPv6. Default is true. (Required for `outbound_addr6`).
|
|
|
2b1b9b |
# - outbound_addr=INTERFACE: Specify the outbound interface slirp should bind to (ipv4 traffic only).
|
|
|
2b1b9b |
# - outbound_addr=IPv4: Specify the outbound ipv4 address slirp should bind to.
|
|
|
2b1b9b |
# - outbound_addr6=INTERFACE: Specify the outbound interface slirp should bind to (ipv6 traffic only).
|
|
|
2b1b9b |
# - outbound_addr6=IPv6: Specify the outbound ipv6 address slirp should bind to.
|
|
|
2b1b9b |
# - port_handler=rootlesskit: Use rootlesskit for port forwarding. Default.
|
|
|
2b1b9b |
# Note: Rootlesskit changes the source IP address of incoming packets to a IP address in the container
|
|
|
2b1b9b |
# network namespace, usually `10.0.2.100`. If your application requires the real source IP address,
|
|
|
2b1b9b |
# e.g. web server logs, use the slirp4netns port handler. The rootlesskit port handler is also used for
|
|
|
2b1b9b |
# rootless containers when connected to user-defined networks.
|
|
|
2b1b9b |
# - port_handler=slirp4netns: Use the slirp4netns port forwarding, it is slower than rootlesskit but
|
|
|
2b1b9b |
# preserves the correct source IP address. This port handler cannot be used for user-defined networks.
|
|
|
2b1b9b |
#
|
|
|
2b1b9b |
#network_cmd_options = []
|
|
|
5dd126 |
|
|
|
5dd126 |
# Whether to use chroot instead of pivot_root in the runtime
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#no_pivot_root = false
|
|
|
5dd126 |
|
|
|
5dd126 |
# Number of locks available for containers and pods.
|
|
|
5dd126 |
# If this is changed, a lock renumber must be performed (e.g. with the
|
|
|
5dd126 |
# 'podman system renumber' command).
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#num_locks = 2048
|
|
|
5dd126 |
|
|
|
2b1b9b |
# Set the exit policy of the pod when the last container exits.
|
|
|
2b1b9b |
#pod_exit_policy = "continue"
|
|
|
2b1b9b |
|
|
|
5dd126 |
# Whether to pull new image before running a container
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#pull_policy = "missing"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Indicates whether the application should be running in remote mode. This flag modifies the
|
|
|
5dd126 |
# --remote option on container engines. Setting the flag to true will default
|
|
|
5dd126 |
# `podman --remote=true` for access to the remote Podman service.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#remote = false
|
|
|
5dd126 |
|
|
|
5dd126 |
# Default OCI runtime
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#runtime = "crun"
|
|
|
5dd126 |
runtime = "runc"
|
|
|
5dd126 |
|
|
|
e2e81a |
# List of the OCI runtimes that support --format=json. When json is supported
|
|
|
5dd126 |
# engine will use it for reporting nicer errors.
|
|
|
5dd126 |
#
|
|
|
c929c0 |
#runtime_supports_json = ["crun", "runc", "kata", "runsc", "youki", "krun"]
|
|
|
5dd126 |
|
|
|
5dd126 |
# List of the OCI runtimes that supports running containers with KVM Separation.
|
|
|
5dd126 |
#
|
|
|
e2e81a |
#runtime_supports_kvm = ["kata", "krun"]
|
|
|
5dd126 |
|
|
|
5dd126 |
# List of the OCI runtimes that supports running containers without cgroups.
|
|
|
5dd126 |
#
|
|
|
e2e81a |
#runtime_supports_nocgroups = ["crun", "krun"]
|
|
|
e2e81a |
|
|
|
e2e81a |
# Default location for storing temporary container image content. Can be overridden with the TMPDIR environment
|
|
|
e2e81a |
# variable. If you specify "storage", then the location of the
|
|
|
e2e81a |
# container/storage tmp directory will be used.
|
|
|
e2e81a |
# image_copy_tmp_dir="/var/tmp"
|
|
|
e2e81a |
|
|
|
e2e81a |
# Number of seconds to wait without a connection
|
|
|
e2e81a |
# before the `podman system service` times out and exits
|
|
|
e2e81a |
#
|
|
|
e2e81a |
#service_timeout = 5
|
|
|
5dd126 |
|
|
|
5dd126 |
# Directory for persistent engine files (database, etc)
|
|
|
5dd126 |
# By default, this will be configured relative to where the containers/storage
|
|
|
5dd126 |
# stores containers
|
|
|
5dd126 |
# Uncomment to change location from this default
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#static_dir = "/var/lib/containers/storage/libpod"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Number of seconds to wait for container to exit before sending kill signal.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#stop_timeout = 10
|
|
|
5dd126 |
|
|
|
2b1b9b |
# Number of seconds to wait before exit command in API process is given to.
|
|
|
2b1b9b |
# This mimics Docker's exec cleanup behaviour, where the default is 5 minutes (value is in seconds).
|
|
|
2b1b9b |
#
|
|
|
2b1b9b |
#exit_command_delay = 300
|
|
|
2b1b9b |
|
|
|
5dd126 |
# map of service destinations
|
|
|
5dd126 |
#
|
|
|
c929c0 |
# [service_destinations]
|
|
|
5dd126 |
# [service_destinations.production]
|
|
|
5dd126 |
# URI to access the Podman service
|
|
|
5dd126 |
# Examples:
|
|
|
5dd126 |
# rootless "unix://run/user/$UID/podman/podman.sock" (Default)
|
|
|
2b1b9b |
# rootful "unix://run/podman/podman.sock (Default)
|
|
|
5dd126 |
# remote rootless ssh://engineering.lab.company.com/run/user/1000/podman/podman.sock
|
|
|
2b1b9b |
# remote rootful ssh://root@10.10.1.136:22/run/podman/podman.sock
|
|
|
5dd126 |
#
|
|
|
5dd126 |
# uri = "ssh://user@production.example.com/run/user/1001/podman/podman.sock"
|
|
|
5dd126 |
# Path to file containing ssh identity key
|
|
|
5dd126 |
# identity = "~/.ssh/id_rsa"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Directory for temporary files. Must be tmpfs (wiped after reboot)
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#tmp_dir = "/run/libpod"
|
|
|
5dd126 |
|
|
|
5dd126 |
# Directory for libpod named volumes.
|
|
|
5dd126 |
# By default, this will be configured relative to where containers/storage
|
|
|
5dd126 |
# stores containers.
|
|
|
5dd126 |
# Uncomment to change location from this default.
|
|
|
5dd126 |
#
|
|
|
5dd126 |
#volume_path = "/var/lib/containers/storage/volumes"
|
|
|
5dd126 |
|
|
|
c929c0 |
# Default timeout (in seconds) for volume plugin operations.
|
|
|
c929c0 |
# Plugins are external programs accessed via a REST API; this sets a timeout
|
|
|
c929c0 |
# for requests to that API.
|
|
|
c929c0 |
# A value of 0 is treated as no timeout.
|
|
|
c929c0 |
#volume_plugin_timeout = 5
|
|
|
c929c0 |
|
|
|
e2e81a |
# Paths to look for a valid OCI runtime (crun, runc, kata, runsc, krun, etc)
|
|
|
5dd126 |
[engine.runtimes]
|
|
|
5dd126 |
#crun = [
|
|
|
5dd126 |
# "/usr/bin/crun",
|
|
|
5dd126 |
# "/usr/sbin/crun",
|
|
|
5dd126 |
# "/usr/local/bin/crun",
|
|
|
5dd126 |
# "/usr/local/sbin/crun",
|
|
|
5dd126 |
# "/sbin/crun",
|
|
|
5dd126 |
# "/bin/crun",
|
|
|
5dd126 |
# "/run/current-system/sw/bin/crun",
|
|
|
5dd126 |
#]
|
|
|
5dd126 |
|
|
|
5dd126 |
#kata = [
|
|
|
5dd126 |
# "/usr/bin/kata-runtime",
|
|
|
5dd126 |
# "/usr/sbin/kata-runtime",
|
|
|
5dd126 |
# "/usr/local/bin/kata-runtime",
|
|
|
5dd126 |
# "/usr/local/sbin/kata-runtime",
|
|
|
5dd126 |
# "/sbin/kata-runtime",
|
|
|
5dd126 |
# "/bin/kata-runtime",
|
|
|
5dd126 |
# "/usr/bin/kata-qemu",
|
|
|
5dd126 |
# "/usr/bin/kata-fc",
|
|
|
5dd126 |
#]
|
|
|
5dd126 |
|
|
|
5dd126 |
#runc = [
|
|
|
5dd126 |
# "/usr/bin/runc",
|
|
|
5dd126 |
# "/usr/sbin/runc",
|
|
|
5dd126 |
# "/usr/local/bin/runc",
|
|
|
5dd126 |
# "/usr/local/sbin/runc",
|
|
|
5dd126 |
# "/sbin/runc",
|
|
|
5dd126 |
# "/bin/runc",
|
|
|
5dd126 |
# "/usr/lib/cri-o-runc/sbin/runc",
|
|
|
5dd126 |
#]
|
|
|
5dd126 |
|
|
|
5dd126 |
#runsc = [
|
|
|
5dd126 |
# "/usr/bin/runsc",
|
|
|
5dd126 |
# "/usr/sbin/runsc",
|
|
|
5dd126 |
# "/usr/local/bin/runsc",
|
|
|
5dd126 |
# "/usr/local/sbin/runsc",
|
|
|
5dd126 |
# "/bin/runsc",
|
|
|
5dd126 |
# "/sbin/runsc",
|
|
|
5dd126 |
# "/run/current-system/sw/bin/runsc",
|
|
|
5dd126 |
#]
|
|
|
5dd126 |
|
|
|
c929c0 |
#youki = [
|
|
|
c929c0 |
# "/usr/local/bin/youki",
|
|
|
c929c0 |
# "/usr/bin/youki",
|
|
|
c929c0 |
# "/bin/youki",
|
|
|
c929c0 |
# "/run/current-system/sw/bin/youki",
|
|
|
c929c0 |
#]
|
|
|
c929c0 |
|
|
|
e2e81a |
#krun = [
|
|
|
e2e81a |
# "/usr/bin/krun",
|
|
|
e2e81a |
# "/usr/local/bin/krun",
|
|
|
e2e81a |
#]
|
|
|
e2e81a |
|
|
|
5dd126 |
[engine.volume_plugins]
|
|
|
5dd126 |
#testplugin = "/run/podman/plugins/test.sock"
|
|
|
5dd126 |
|
|
|
21a30b |
[machine]
|
|
|
21a30b |
# Number of CPU's a machine is created with.
|
|
|
21a30b |
#
|
|
|
21a30b |
#cpus=1
|
|
|
21a30b |
|
|
|
21a30b |
# The size of the disk in GB created when init-ing a podman-machine VM.
|
|
|
21a30b |
#
|
|
|
21a30b |
#disk_size=10
|
|
|
21a30b |
|
|
|
c929c0 |
# Default image URI when creating a new VM using `podman machine init`.
|
|
|
c929c0 |
# Options: On Linux/Mac, `testing`, `stable`, `next`. On Windows, the major
|
|
|
c929c0 |
# version of the OS (e.g `36`) for Fedora 36. For all platforms you can
|
|
|
c929c0 |
# alternatively specify a custom download URL to an image. Container engines
|
|
|
c929c0 |
# translate URIs $OS and $ARCH to the native OS and ARCH. URI
|
|
|
c929c0 |
# "https://example.com/$OS/$ARCH/foobar.ami" becomes
|
|
|
c929c0 |
# "https://example.com/linux/amd64/foobar.ami" on a Linux AMD machine.
|
|
|
c929c0 |
# The default value is `testing`.
|
|
|
21a30b |
#
|
|
|
c929c0 |
# image = "testing"
|
|
|
21a30b |
|
|
|
21a30b |
# Memory in MB a machine is created with.
|
|
|
21a30b |
#
|
|
|
21a30b |
#memory=2048
|
|
|
21a30b |
|
|
|
e2e81a |
# The username to use and create on the podman machine OS for rootless
|
|
|
e2e81a |
# container access.
|
|
|
e2e81a |
#
|
|
|
e2e81a |
#user = "core"
|
|
|
e2e81a |
|
|
|
2b1b9b |
# Host directories to be mounted as volumes into the VM by default.
|
|
|
2b1b9b |
# Environment variables like $HOME as well as complete paths are supported for
|
|
|
2b1b9b |
# the source and destination. An optional third field `:ro` can be used to
|
|
|
2b1b9b |
# tell the container engines to mount the volume readonly.
|
|
|
2b1b9b |
#
|
|
|
2b1b9b |
# volumes = [
|
|
|
2b1b9b |
# "$HOME:$HOME",
|
|
|
2b1b9b |
#]
|
|
|
2b1b9b |
|
|
|
21a30b |
# The [machine] table MUST be the last entry in this file.
|
|
|
5dd126 |
# (Unless another table is added)
|
|
|
5dd126 |
# TOML does not provide a way to end a table other than a further table being
|
|
|
21a30b |
# defined, so every key hereafter will be part of [machine] and not the
|
|
|
5dd126 |
# main config.
|