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