mirror of
https://github.com/containers/podman
synced 2024-10-19 16:54:07 +00:00
dd8bb2d088
Adding the journald configuration broke decoding the default libpod.conf, because it was after the [runtimes] table (and was being interpreted as a member of the table, and not the larger config). We can't easily fix this on the TOML side, so our best bet is to move it above the table and add a comment to try and make sure this doesn't happen again. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
126 lines
4.1 KiB
Plaintext
126 lines
4.1 KiB
Plaintext
# libpod.conf is the default configuration file for all tools using libpod to
|
|
# manage containers
|
|
|
|
# Default transport method for pulling and pushing for images
|
|
image_default_transport = "docker://"
|
|
|
|
# Paths to look for the Conmon container manager binary
|
|
conmon_path = [
|
|
"/usr/libexec/podman/conmon",
|
|
"/usr/libexec/crio/conmon",
|
|
"/usr/local/lib/podman/conmon",
|
|
"/usr/local/libexec/crio/conmon",
|
|
"/usr/bin/conmon",
|
|
"/usr/sbin/conmon",
|
|
"/usr/lib/podman/bin/conmon",
|
|
"/usr/lib/crio/bin/conmon"
|
|
]
|
|
|
|
# Environment variables to pass into conmon
|
|
conmon_env_vars = [
|
|
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
]
|
|
|
|
# CGroup Manager - valid values are "systemd" and "cgroupfs"
|
|
cgroup_manager = "systemd"
|
|
|
|
# Container init binary
|
|
#init_path = "/usr/libexec/podman/catatonit"
|
|
|
|
# Directory for persistent libpod files (database, etc)
|
|
# By default, this will be configured relative to where containers/storage
|
|
# stores containers
|
|
# Uncomment to change location from this default
|
|
#static_dir = "/var/lib/containers/storage/libpod"
|
|
|
|
# Directory for temporary files. Must be tmpfs (wiped after reboot)
|
|
tmp_dir = "/var/run/libpod"
|
|
|
|
# Maximum size of log files (in bytes)
|
|
# -1 is unlimited
|
|
max_log_size = -1
|
|
|
|
# Whether to use chroot instead of pivot_root in the runtime
|
|
no_pivot_root = false
|
|
|
|
# Directory containing CNI plugin configuration files
|
|
cni_config_dir = "/etc/cni/net.d/"
|
|
|
|
# Directories where the CNI plugin binaries may be located
|
|
cni_plugin_dir = [
|
|
"/usr/libexec/cni",
|
|
"/usr/lib/cni",
|
|
"/usr/local/lib/cni",
|
|
"/opt/cni/bin"
|
|
]
|
|
|
|
# Default CNI network for libpod.
|
|
# If multiple CNI network configs are present, libpod will use the network with
|
|
# the name given here for containers unless explicitly overridden.
|
|
# The default here is set to the name we set in the
|
|
# 87-podman-bridge.conflist included in the repository.
|
|
# Not setting this, or setting it to the empty string, will use normal CNI
|
|
# precedence rules for selecting between multiple networks.
|
|
cni_default_network = "podman"
|
|
|
|
# Default libpod namespace
|
|
# If libpod 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.
|
|
#namespace = ""
|
|
|
|
# Default infra (pause) image name for pod infra containers
|
|
infra_image = "k8s.gcr.io/pause:3.1"
|
|
|
|
# Default command to run the infra container
|
|
infra_command = "/pause"
|
|
|
|
# Determines whether libpod will reserve ports on the host when they are
|
|
# forwarded to containers. When enabled, when ports are forwarded to containers,
|
|
# they are held open by conmon 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.
|
|
#enable_port_reservation = true
|
|
|
|
# Default libpod support for container labeling
|
|
# label=true
|
|
|
|
# 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).
|
|
num_locks = 2048
|
|
|
|
# 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.
|
|
#volume_path = "/var/lib/containers/storage/volumes"
|
|
|
|
# Selects which logging mechanism to use for Podman events. Valid values
|
|
# are `journald` or `file`.
|
|
# events_logger = "journald"
|
|
|
|
# Default OCI runtime
|
|
runtime = "runc"
|
|
|
|
# Paths to look for a valid OCI runtime (runc, runv, etc)
|
|
[runtimes]
|
|
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"
|
|
]
|
|
|
|
# The [runtimes] table MUST be the last thing in this file.
|
|
# (Unless another table is added)
|
|
# TOML does not provide a way to end a table other than a further table being
|
|
# defined, so every key hereafter will be part of [runtimes] and not the main
|
|
# config.
|