bb3e91
% containers.conf 5 Container engine configuration file
bb3e91
bb3e91
# NAME
bb3e91
containers.conf - The container engine configuration file specifies default
bb3e91
configuration options and command-line flags for container engines.
bb3e91
bb3e91
# DESCRIPTION
bb3e91
Container engines like Podman & Buildah read containers.conf file, if it exists
bb3e91
and modify the defaults for running containers on the host. containers.conf uses
bb3e91
a TOML format that can be easily modified and versioned.
bb3e91
bb3e91
Container engines read the /usr/share/containers/containers.conf and
bb3e91
/etc/containers/containers.conf, and /etc/containers/containers.conf.d/*.conf files
bb3e91
if they exist. When running in rootless mode, they also read
bb3e91
$HOME/.config/containers/containers.conf and
bb3e91
$HOME/.config/containers/containers.conf.d/*.conf files.
bb3e91
bb3e91
Fields specified in containers conf override the default options, as well as
bb3e91
options in previously read containers.conf files.
bb3e91
bb3e91
Config files in the `.d` directories, are added in alpha numeric sorted order and must end in `.conf`.
bb3e91
bb3e91
Not all options are supported in all container engines.
bb3e91
bb3e91
Note container engines also use other configuration files for configuring the environment.
bb3e91
bb3e91
* `storage.conf` for configuration of container and images storage.
bb3e91
* `registries.conf` for definition of container registires to search while pulling.
bb3e91
container images.
bb3e91
* `policy.conf` for controlling which images can be pulled to the system.
bb3e91
bb3e91
# FORMAT
bb3e91
The [TOML format][toml] is used as the encoding of the configuration file.
bb3e91
Every option is nested under its table. No bare options are used. The format of
bb3e91
TOML can be simplified to:
bb3e91
bb3e91
    [table1]
bb3e91
    option = value
bb3e91
bb3e91
    [table2]
bb3e91
    option = value
bb3e91
bb3e91
    [table3]
bb3e91
    option = value
bb3e91
bb3e91
    [table3.subtable1]
bb3e91
    option = value
bb3e91
bb3e91
## CONTAINERS TABLE
bb3e91
The containers table contains settings to configure and manage the OCI runtime.
bb3e91
bb3e91
**annotations** = []
bb3e91
List of annotations. Specified as "key=value" pairs to be added to all containers.
bb3e91
bb3e91
Example: "run.oci.keep_original_groups=1"
bb3e91
bb3e91
**apparmor_profile**="container-default"
bb3e91
bb3e91
Used to change the name of the default AppArmor profile of container engines.
bb3e91
The default profile name is "container-default".
bb3e91
947b07
**base_hosts_file**=""
947b07
947b07
The hosts entries from the base hosts file are added to the containers hosts
947b07
file. This must be either an absolute path or as special values "image" which
947b07
uses the hosts file from the container image or "none" which means
947b07
no base hosts file is used. The default is "" which will use /etc/hosts.
947b07
bb3e91
**cgroups**="enabled"
bb3e91
bb3e91
Determines  whether  the  container will create CGroups.
bb3e91
Options are:
bb3e91
  `enabled`   Enable cgroup support within container
bb3e91
  `disabled`  Disable cgroup support, will inherit cgroups from parent
bb3e91
  `no-conmon` Do not create a cgroup dedicated to conmon.
bb3e91
bb3e91
**cgroupns**="private"
bb3e91
bb3e91
Default way to to create a cgroup namespace for the container.
bb3e91
Options are:
bb3e91
`private` Create private Cgroup Namespace for the container.
bb3e91
`host`    Share host Cgroup Namespace with the container.
bb3e91
bb3e91
**default_capabilities**=[]
bb3e91
bb3e91
List of default capabilities for containers.
bb3e91
bb3e91
The default list is:
bb3e91
```
bb3e91
default_capabilities = [
bb3e91
"AUDIT_WRITE",
bb3e91
      "CHOWN",
bb3e91
      "DAC_OVERRIDE",
bb3e91
      "FOWNER",
bb3e91
      "FSETID",
bb3e91
      "KILL",
bb3e91
      "MKNOD",
bb3e91
      "NET_BIND_SERVICE",
bb3e91
      "NET_RAW",
bb3e91
      "SETGID",
bb3e91
      "SETPCAP",
bb3e91
      "SETUID",
bb3e91
      "SYS_CHROOT",
bb3e91
]
bb3e91
```
bb3e91
bb3e91
**default_sysctls**=[]
bb3e91
bb3e91
A list of sysctls to be set in containers by default,
bb3e91
specified as "name=value".
bb3e91
bb3e91
Example:"net.ipv4.ping_group_range=0 1000".
bb3e91
bb3e91
**default_ulimits**=[]
bb3e91
bb3e91
A list of ulimits to be set in containers by default,
bb3e91
specified as "name=soft-limit:hard-limit".
bb3e91
bb3e91
Example: "nofile=1024:2048".
bb3e91
bb3e91
**devices**=[]
bb3e91
bb3e91
List of devices.
bb3e91
Specified as 'device-on-host:device-on-container:permissions'.
bb3e91
bb3e91
Example: "/dev/sdc:/dev/xvdc:rwm".
bb3e91
bb3e91
**dns_options**=[]
bb3e91
bb3e91
List of default DNS options to be added to /etc/resolv.conf inside of the
bb3e91
container.
bb3e91
bb3e91
**dns_searches**=[]
bb3e91
bb3e91
List of default DNS search domains to be added to /etc/resolv.conf inside of
bb3e91
the container.
bb3e91
bb3e91
**dns_servers**=[]
bb3e91
bb3e91
A list of dns servers to override the DNS configuration passed to the
bb3e91
container. The special value “none” can be specified to disable creation of
bb3e91
/etc/resolv.conf in the container.
bb3e91
bb3e91
**env**=["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TERM=xterm"]
bb3e91
bb3e91
Environment variable list for the container process, used for passing
bb3e91
environment variables to the container.
bb3e91
bb3e91
**env_host**=false
bb3e91
bb3e91
Pass all host environment variables into the container.
bb3e91
947b07
**host_containers_internal_ip**=""
947b07
947b07
Set the ip for the host.containers.internal entry in the containers /etc/hosts
947b07
file. This can be set to "none" to disable adding this entry. By default it
947b07
will automatically choose the host ip.
947b07
947b07
NOTE: When using podman machine this entry will never be added to the containers
947b07
hosts file instead the gvproxy dns resolver will resolve this hostname. Therefore
947b07
it is not possible to disable the entry in this case.
947b07
bb3e91
**http_proxy**=true
bb3e91
bb3e91
Default proxy environment variables will be passed into the container.
bb3e91
The environment variables passed in include:
bb3e91
`http_proxy`, `https_proxy`, `ftp_proxy`, `no_proxy`, and the upper case
bb3e91
versions of these. The `no_proxy` option is needed when host system uses a proxy
bb3e91
but container should not use proxy. Proxy environment variables specified for
bb3e91
the container in any other way will override the values passed from the host.
bb3e91
bb3e91
**init**=false
bb3e91
bb3e91
Run an init inside the container that forwards signals and reaps processes.
bb3e91
bb3e91
**init_path**="/usr/libexec/podman/catatonit"
bb3e91
bb3e91
Path to the container-init binary, which forwards signals and reaps processes
bb3e91
within containers. Note that the container-init binary will only be used when
bb3e91
the `--init` for podman-create and podman-run is set.
bb3e91
947b07
**ipcns**="shareable"
bb3e91
bb3e91
Default way to to create a IPC namespace for the container.
bb3e91
Options are:
947b07
  `host`     Share host IPC Namespace with the container.
947b07
  `none`     Create shareable IPC Namespace for the container without a private /dev/shm.
947b07
  `private`  Create private IPC Namespace for the container, other containers are not allowed to share it.
947b07
  `shareable` Create shareable IPC Namespace for the container.
bb3e91
bb3e91
**keyring**=true
bb3e91
bb3e91
Indicates whether the container engines create a kernel keyring for use within
bb3e91
the container.
bb3e91
bb3e91
**label**=true
bb3e91
bb3e91
Indicates whether the container engine uses MAC(SELinux) container separation via labeling. This option is ignored on disabled systems.
bb3e91
bb3e91
**log_driver**="k8s-file"
bb3e91
bb3e91
Logging driver for the container. Available options: `k8s-file` and `journald`.
bb3e91
bb3e91
**log_size_max**=-1
bb3e91
bb3e91
Maximum size allowed for the container's log file. Negative numbers indicate
bb3e91
that no size limit is imposed. If it is positive, it must be >= 8192 to
bb3e91
match/exceed conmon's read buffer. The file is truncated and re-opened so the
bb3e91
limit is never exceeded.
bb3e91
bb3e91
**log_tag**=""
bb3e91
bb3e91
Default format tag for container log messages. This is useful for creating a specific tag for container log messages. Container log messages default to using the truncated container ID as a tag.
bb3e91
bb3e91
**netns**="private"
bb3e91
bb3e91
Default way to to create a NET namespace for the container.
bb3e91
Options are:
bb3e91
  `private` Create private NET Namespace for the container.
bb3e91
  `host`    Share host NET Namespace with the container.
bb3e91
  `none`    Containers do not use the network.
bb3e91
bb3e91
**no_hosts**=false
bb3e91
bb3e91
Create /etc/hosts for the container. By default, container engines manage
bb3e91
/etc/hosts, automatically adding  the container's  own  IP  address.
bb3e91
bb3e91
**pidns**="private"
bb3e91
bb3e91
Default way to to create a PID namespace for the container.
bb3e91
Options are:
bb3e91
  `private` Create private PID Namespace for the container.
bb3e91
  `host`    Share host PID Namespace with the container.
bb3e91
bb3e91
**pids_limit**=1024
bb3e91
bb3e91
Maximum number of processes allowed in a container. 0 indicates that no limit
bb3e91
is imposed.
bb3e91
bb3e91
**prepare_volume_on_create**=false
bb3e91
bb3e91
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.
bb3e91
bb3e91
**seccomp_profile**="/usr/share/containers/seccomp.json"
bb3e91
bb3e91
Path to the seccomp.json profile which is used as the default seccomp profile
bb3e91
for the runtime.
bb3e91
bb3e91
**shm_size**="65536k"
bb3e91
bb3e91
Size of `/dev/shm`. The format is `<number><unit>`. `number` must be greater
bb3e91
than `0`.
bb3e91
Unit is optional and can be:
bb3e91
`b` (bytes), `k` (kilobytes), `m`(megabytes), or `g` (gigabytes).
bb3e91
If you omit the unit, the system uses bytes. If you omit the size entirely,
bb3e91
the system uses `65536k`.
bb3e91
bb3e91
**tz=**""
bb3e91
bb3e91
Set timezone in container. Takes IANA timezones as well as `local`, which sets the timezone in the container to match the host machine.
bb3e91
If not set, then containers will run with the time zone specified in the image.
bb3e91
bb3e91
Examples:
bb3e91
  `tz="local"`
bb3e91
  `tz="America/New_York"`
bb3e91
bb3e91
**umask**="0022"
bb3e91
bb3e91
Sets umask inside the container.
bb3e91
bb3e91
**userns**="host"
bb3e91
bb3e91
Default way to to create a USER namespace for the container.
bb3e91
Options are:
bb3e91
  `private` Create private USER Namespace for the container.
bb3e91
  `host`    Share host USER Namespace with the container.
bb3e91
bb3e91
**userns_size**=65536
bb3e91
bb3e91
Number of UIDs to allocate for the automatic container creation. UIDs are
bb3e91
allocated from the “container” UIDs listed in /etc/subuid & /etc/subgid.
bb3e91
bb3e91
**utsns**="private"
bb3e91
bb3e91
Default way to to create a UTS namespace for the container.
bb3e91
Options are:
bb3e91
  `private` Create private UTS Namespace for the container.
bb3e91
  `host`    Share host UTS Namespace with the container.
bb3e91
947b07
**volumes**=[]
947b07
947b07
List of volumes.
947b07
Specified as "directory-on-host:directory-in-container:options".
947b07
947b07
Example:  "/db:/var/lib/db:ro".
bb3e91
bb3e91
## NETWORK TABLE
bb3e91
The `network` table contains settings pertaining to the management of CNI
bb3e91
plugins.
bb3e91
bb3e91
**network_backend**=""
bb3e91
bb3e91
Network backend determines what network driver will be used to set up and tear down container networks.
bb3e91
Valid values are "cni" and "netavark".
bb3e91
The default value is empty which means that it will automatically choose CNI or netavark. If there are
bb3e91
already containers/images or CNI networks preset it will choose CNI.
bb3e91
bb3e91
Before changing this value all containers must be stopped otherwise it is likely that
bb3e91
iptables rules and network interfaces might leak on the host. A reboot will fix this.
bb3e91
bb3e91
**cni_plugin_dirs**=[]
bb3e91
bb3e91
List of paths to directories where CNI plugin binaries are located.
bb3e91
bb3e91
The default list is:
bb3e91
```
bb3e91
cni_plugin_dirs = [
bb3e91
  "/usr/local/libexec/cni",
bb3e91
  "/usr/libexec/cni",
bb3e91
  "/usr/local/lib/cni",
bb3e91
  "/usr/lib/cni",
bb3e91
  "/opt/cni/bin",
bb3e91
]
bb3e91
```
bb3e91
bb3e91
**default_network**="podman"
bb3e91
bb3e91
The network name of the default network to attach pods to.
bb3e91
bb3e91
**default_subnet**="10.88.0.0/16"
bb3e91
bb3e91
The subnet to use for the default network (named above in **default_network**).
bb3e91
If the default network does not exist, it will be automatically created the first time a tool is run using this subnet.
bb3e91
947b07
**default_subnet_pools**=[]
947b07
947b07
DefaultSubnetPools is a list of subnets and size which are used to
947b07
allocate subnets automatically for podman network create.
947b07
It will iterate through the list and will pick the first free subnet
947b07
with the given size. This is only used for ipv4 subnets, ipv6 subnets
947b07
are always assigned randomly.
947b07
947b07
The default list is (10.89.0.0-10.255.255.0/24):
947b07
```
947b07
default_subnet_pools = [
947b07
  {"base" = "10.89.0.0/16", "size" = 24},
947b07
  {"base" = "10.90.0.0/15", "size" = 24},
947b07
  {"base" = "10.92.0.0/14", "size" = 24},
947b07
  {"base" = "10.96.0.0/11", "size" = 24},
947b07
  {"base" = "10.128.0.0/9", "size" = 24},
947b07
]
947b07
```
947b07
bb3e91
**network_config_dir**="/etc/cni/net.d/"
bb3e91
bb3e91
Path to the directory where network configuration files are located.
bb3e91
For the CNI backend the default is "/etc/cni/net.d" as root
bb3e91
and "$HOME/.config/cni/net.d" as rootless.
bb3e91
For the netavark backend "/etc/containers/networks" is used as root
bb3e91
and "$graphroot/networks" as rootless.
bb3e91
6ca60b
**dns_bind_port**=53
6ca60b
6ca60b
Port to use for dns forwarding daemon with netavark in rootful bridge
6ca60b
mode and dns enabled.
6ca60b
Using an alternate port might be useful if other dns services should
6ca60b
run on the machine.
6ca60b
bb3e91
## ENGINE TABLE
bb3e91
The `engine` table contains configuration options used to set up container engines such as Podman and Buildah.
bb3e91
bb3e91
**active_service**=""
bb3e91
bb3e91
Name of destination for accessing the Podman service. See SERVICE DESTINATION TABLE below.
bb3e91
bb3e91
**cgroup_manager**="systemd"
bb3e91
bb3e91
The cgroup management implementation used for the runtime. Supports `cgroupfs`
bb3e91
and `systemd`.
bb3e91
bb3e91
**conmon_env_vars**=[]
bb3e91
bb3e91
Environment variables to pass into Conmon.
bb3e91
bb3e91
**conmon_path**=[]
bb3e91
bb3e91
Paths to search for the conmon container manager binary. If the paths are
bb3e91
empty or no valid path was found, then the `$PATH` environment variable will be
bb3e91
used as the fallback.
bb3e91
bb3e91
The default list is:
bb3e91
```
bb3e91
conmon_path=[
bb3e91
    "/usr/libexec/podman/conmon",
bb3e91
    "/usr/local/libexec/podman/conmon",
bb3e91
    "/usr/local/lib/podman/conmon",
bb3e91
    "/usr/bin/conmon",
bb3e91
    "/usr/sbin/conmon",
bb3e91
    "/usr/local/bin/conmon",
bb3e91
    "/usr/local/sbin/conmon",
bb3e91
    "/run/current-system/sw/bin/conmon",
bb3e91
]
bb3e91
```
bb3e91
bb3e91
**detach_keys**="ctrl-p,ctrl-q"
bb3e91
bb3e91
Keys sequence used for detaching a container.
bb3e91
Specify the keys sequence used to detach a container.
bb3e91
Format is a single character `[a-Z]` or a comma separated sequence of
bb3e91
`ctrl-<value>`, where `<value>` is one of:
bb3e91
`a-z`, `@`, `^`, `[`, `\`, `]`, `^` or `_`
bb3e91
bb3e91
**enable_port_reservation**=true
bb3e91
bb3e91
Determines whether the engine will reserve ports on the host when they are
bb3e91
forwarded to containers. When enabled, when ports are forwarded to containers,
bb3e91
they are held open by conmon as long as the container is running, ensuring that
bb3e91
they cannot be reused by other programs on the host. However, this can cause
bb3e91
significant memory usage if a container has many ports forwarded to it.
bb3e91
Disabling this can save memory.
bb3e91
bb3e91
**env**=[]
bb3e91
bb3e91
Environment variables to be used when running the container engine (e.g., Podman, Buildah). For example "http_proxy=internal.proxy.company.com".
bb3e91
Note these environment variables will not be used within the container. Set the env section under [containers] table,
bb3e91
if you want to set environment variables for the container.
bb3e91
bb3e91
**events_logfile_path**=""
bb3e91
bb3e91
Define where event logs will be stored, when events_logger is "file".
bb3e91
947b07
**events_logfile_max_size**="1m"
947b07
947b07
Sets the maximum size for events_logfile_path.
947b07
The unit can be b (bytes), k (kilobytes), m (megabytes) or g (gigabytes).
947b07
The format for the size is `<number><unit>`, e.g., `1b` or `3g`.
947b07
If no unit is included then the size will be in bytes.
947b07
When the limit is exceeded, the logfile will be rotated and the old one will be deleted.
947b07
If the maximumn size is set to 0, then no limit will be applied,
947b07
and the logfile will not be rotated.
947b07
bb3e91
**events_logger**="journald"
bb3e91
6ca60b
The default method to use when logging events.  
6ca60b
6ca60b
The default method is different based on the platform that
6ca60b
Podman is being run upon.  To determine the current value,
6ca60b
use this command:
6ca60b
6ca60b
`podman info --format {{.Host.EventLogger}`
6ca60b
6ca60b
Valid values are: `file`, `journald`, and `none`.
bb3e91
bb3e91
**helper_binaries_dir**=["/usr/libexec/podman", ...]
bb3e91
bb3e91
A is a list of directories which are used to search for helper binaries.
bb3e91
bb3e91
The default paths on Linux are:
bb3e91
- `/usr/local/libexec/podman`
bb3e91
- `/usr/local/lib/podman`
bb3e91
- `/usr/libexec/podman`
bb3e91
- `/usr/lib/podman`
bb3e91
bb3e91
The default paths on macOS are:
bb3e91
- `/usr/local/opt/podman/libexec`
bb3e91
-	`/opt/homebrew/bin`
bb3e91
-	`/opt/homebrew/opt/podman/libexec`
bb3e91
- `/usr/local/bin`
bb3e91
-	`/usr/local/libexec/podman`
bb3e91
-	`/usr/local/lib/podman`
bb3e91
-	`/usr/libexec/podman`
bb3e91
-	`/usr/lib/podman`
bb3e91
bb3e91
The default path on Windows is:
bb3e91
- `C:\Program Files\RedHat\Podman`
bb3e91
bb3e91
**hooks_dir**=["/etc/containers/oci/hooks.d", ...]
bb3e91
bb3e91
Path to the OCI hooks directories for automatically executed hooks.
bb3e91
bb3e91
**image_default_format**="oci"|"v2s2"|"v2s1"
bb3e91
bb3e91
Manifest Type (oci, v2s2, or v2s1) to use when pulling, pushing, building
bb3e91
container images. By default images pulled and pushed match the format of the
bb3e91
source image. Building/committing defaults to OCI.
bb3e91
Note: **image_build_format** is deprecated.
bb3e91
bb3e91
**image_default_transport**="docker://"
bb3e91
bb3e91
Default transport method for pulling and pushing images.
bb3e91
bb3e91
**image_parallel_copies**=0
bb3e91
bb3e91
Maximum number of image layers to be copied (pulled/pushed) simultaneously.
bb3e91
Not setting this field will fall back to containers/image defaults. (6)
bb3e91
6ca60b
**image_volume_mode**="bind"
6ca60b
6ca60b
Tells container engines how to handle the builtin image volumes.
6ca60b
6ca60b
* bind: An anonymous named volume will be  created  and  mounted into the container.
6ca60b
* tmpfs: The volume is mounted onto the container as a tmpfs, which allows the users to create content that disappears when the container is stopped.
6ca60b
* ignore: All volumes are just ignored and no action is taken.
6ca60b
bb3e91
**infra_command**="/pause"
bb3e91
bb3e91
Infra (pause) container image command for pod infra containers. When running a
bb3e91
pod, we start a `/pause` process in a container to hold open the namespaces
bb3e91
associated with the pod. This container does nothing other then sleep,
bb3e91
reserving the pods resources for the lifetime of the pod.
bb3e91
bb3e91
**infra_image**=""
bb3e91
bb3e91
Infra (pause) container image for pod infra containers. When running a
bb3e91
pod, we start a `pause` process in a container to hold open the namespaces
bb3e91
associated with the pod. This container does nothing other then sleep,
bb3e91
reserving the pods resources for the lifetime of the pod. By default container
bb3e91
engines run a builtin container using the pause executable. If you want override
bb3e91
specify an image to pull.
bb3e91
bb3e91
**lock_type**="shm"
bb3e91
bb3e91
Specify the locking mechanism to use; valid values are "shm" and "file".
bb3e91
Change the default only if you are sure of what you are doing, in general
bb3e91
"file" is useful only on platforms where cgo is not available for using the
bb3e91
faster "shm" lock type. You may need to run "podman system renumber" after you
bb3e91
change the lock type.
bb3e91
bb3e91
**multi_image_archive**=false
bb3e91
bb3e91
Allows for creating archives (e.g., tarballs) with more than one image. Some container engines, such as Podman, interpret additional arguments as tags for one image and hence do not store more than one image. The default behavior can be altered with this option.
bb3e91
bb3e91
**namespace**=""
bb3e91
bb3e91
Default engine namespace. If the engine is joined to a namespace, it will see
bb3e91
only containers and pods that were created in the same namespace, and will
bb3e91
create new containers and pods in that namespace. The default namespace is "",
bb3e91
which corresponds to no namespace. When no namespace is set, all containers
bb3e91
and pods are visible.
bb3e91
bb3e91
**network_cmd_path**=""
bb3e91
bb3e91
Path to the slirp4netns binary.
bb3e91
947b07
**network_cmd_options**=[]
bb3e91
bb3e91
Default options to pass to the slirp4netns binary.
bb3e91
bb3e91
Valid options values are:
bb3e91
947b07
  - **allow_host_loopback=true|false**: Allow the slirp4netns to reach the host loopback IP (`10.0.2.2`). Default is false.
bb3e91
  - **mtu=MTU**: Specify the MTU to use for this network. (Default is `65520`).
bb3e91
  - **cidr=CIDR**: Specify ip range to use for this network. (Default is `10.0.2.0/24`).
947b07
  - **enable_ipv6=true|false**: Enable IPv6. Default is true. (Required for `outbound_addr6`).
bb3e91
  - **outbound_addr=INTERFACE**: Specify the outbound interface slirp should bind to (ipv4 traffic only).
bb3e91
  - **outbound_addr=IPv4**: Specify the outbound ipv4 address slirp should bind to.
bb3e91
  - **outbound_addr6=INTERFACE**: Specify the outbound interface slirp should bind to (ipv6 traffic only).
bb3e91
  - **outbound_addr6=IPv6**: Specify the outbound ipv6 address slirp should bind to.
bb3e91
  - **port_handler=rootlesskit**: Use rootlesskit for port forwarding. Default.
bb3e91
  Note: Rootlesskit changes the source IP address of incoming packets to a IP address in the container network namespace, usually `10.0.2.100`. If your application requires the real source IP address, e.g. web server logs, use the slirp4netns port handler. The rootlesskit port handler is also used for rootless containers when connected to user-defined networks.
bb3e91
  - **port_handler=slirp4netns**: Use the slirp4netns port forwarding, it is slower than rootlesskit but preserves the correct source IP address. This port handler cannot be used for user-defined networks.
bb3e91
bb3e91
**no_pivot_root**=false
bb3e91
bb3e91
Whether to use chroot instead of pivot_root in the runtime.
bb3e91
bb3e91
**num_locks**=2048
bb3e91
bb3e91
Number of locks available for containers and pods. Each created container or
bb3e91
pod consumes one lock. The default number available is 2048. If this is
bb3e91
changed, a lock renumbering must be performed, using the
bb3e91
`podman system renumber` command.
bb3e91
947b07
**pod_exit_policy**="continue"
947b07
947b07
Set the exit policy of the pod when the last container exits.  Supported policies are:
947b07
947b07
| Exit Policy        | Description                                                                 |
947b07
| ------------------ | --------------------------------------------------------------------------- |
947b07
| *continue*         | The pod continues running when the last container exits. Used by default.   |
947b07
| *stop*             | The pod is stopped when the last container exits. Used in `play kube`.      |
947b07
bb3e91
**pull_policy**="always"|"missing"|"never"
bb3e91
bb3e91
Pull image before running or creating a container. The default is **missing**.
bb3e91
bb3e91
- **missing**: attempt to pull the latest image from the registries listed in registries.conf if a local image does not exist. Raise an error if the image is not in any listed registry and is not present locally.
bb3e91
- **always**: pull the image from the first registry it is found in as listed in registries.conf. Raise an error if not found in the registries, even if the image is present locally.
bb3e91
- **never**: do not pull the image from the registry, use only the local version. Raise an error if the image is not present locally.
bb3e91
bb3e91
**remote** = false
bb3e91
Indicates whether the application should be running in remote mode. This flag modifies the
bb3e91
--remote option on container engines. Setting the flag to true will default `podman --remote=true` for access to the remote Podman service.
bb3e91
bb3e91
**runtime**=""
bb3e91
bb3e91
Default OCI specific runtime in runtimes that will be used by default. Must
bb3e91
refer to a member of the runtimes table. Default runtime will be searched for
bb3e91
on the system using the priority: "crun", "runc", "kata".
bb3e91
bb3e91
**runtime_supports_json**=["crun", "runc", "kata", "runsc", "krun"]
bb3e91
bb3e91
The list of the OCI runtimes that support `--format=json`.
bb3e91
bb3e91
**runtime_supports_kvm**=["kata", "krun"]
bb3e91
bb3e91
The list of OCI runtimes that support running containers with KVM separation.
bb3e91
bb3e91
**runtime_supports_nocgroups**=["crun", "krun"]
bb3e91
bb3e91
The list of OCI runtimes that support running containers without CGroups.
bb3e91
bb3e91
**image_copy_tmp_dir**="/var/tmp"
bb3e91
bb3e91
Default location for storing temporary container image content. Can be
bb3e91
overridden with the TMPDIR environment variable. If you specify "storage", then
bb3e91
the location of the container/storage tmp directory will be used. If set then it
bb3e91
is the users responsibility to cleanup storage. Configure tmpfiles.d(5) to
bb3e91
cleanup storage.
bb3e91
bb3e91
**service_timeout**=**5**
bb3e91
bb3e91
Number of seconds to wait without a connection  before the
bb3e91
`podman system service` times out and exits
bb3e91
bb3e91
**static_dir**="/var/lib/containers/storage/libpod"
bb3e91
bb3e91
Directory for persistent libpod files (database, etc).
bb3e91
By default this will be configured relative to where containers/storage
bb3e91
stores containers.
bb3e91
bb3e91
**stop_timeout**=10
bb3e91
bb3e91
Number of seconds to wait for container to exit before sending kill signal.
bb3e91
947b07
**exit_command_delay**=300
947b07
947b07
Number of seconds to wait for the API process for the exec call before sending exit command mimicking the Docker behavior of 5 minutes (in seconds).
947b07
bb3e91
**tmp_dir**="/run/libpod"
bb3e91
bb3e91
The path to a temporary directory to store per-boot container.
bb3e91
Must be a tmpfs (wiped after reboot).
bb3e91
bb3e91
**volume_path**="/var/lib/containers/storage/volumes"
bb3e91
bb3e91
Directory where named volumes will be created in using the default volume
bb3e91
driver.
bb3e91
By default this will be configured relative to where containers/storage store
bb3e91
containers. This convention is followed by the default volume driver, but may
bb3e91
not be by other drivers.
bb3e91
bb3e91
**chown_copied_files**=true
bb3e91
bb3e91
Determines whether file copied into a container will have changed ownership to
bb3e91
the primary uid/gid of the container.
bb3e91
bb3e91
**compression_format**=""
bb3e91
bb3e91
Specifies the compression format to use when pushing an image. Supported values are: `gzip`, `zstd` and `zstd:chunked`.
bb3e91
bb3e91
## SERVICE DESTINATION TABLE
bb3e91
The `service_destinations` table contains configuration options used to set up remote connections to the podman service for the podman API.
bb3e91
bb3e91
**[service_destinations.{name}]**
bb3e91
URI to access the Podman service
bb3e91
**uri="ssh://user@production.example.com/run/user/1001/podman/podman.sock"**
bb3e91
bb3e91
  Example URIs:
bb3e91
bb3e91
- **rootless local**  - unix://run/user/1000/podman/podman.sock
bb3e91
- **rootless remote** - ssh://user@engineering.lab.company.com/run/user/1000/podman/podman.sock
947b07
- **rootful local**  - unix://run/podman/podman.sock
947b07
- **rootful remote** - ssh://root@10.10.1.136:22/run/podman/podman.sock
bb3e91
bb3e91
**identity="~/.ssh/id_rsa**
bb3e91
bb3e91
Path to file containing ssh identity key
bb3e91
bb3e91
**[engine.volume_plugins]**
bb3e91
bb3e91
A table of all the enabled volume plugins on the system. Volume plugins can be
bb3e91
used as the backend for Podman named volumes. Individual plugins are specified
bb3e91
below, as a map of the plugin name (what the plugin will be called) to its path
bb3e91
(filepath of the plugin's unix socket).
bb3e91
bb3e91
bb3e91
## SECRET TABLE
bb3e91
The `secret` table contains settings for the configuration of the secret subsystem.
bb3e91
bb3e91
**driver**=file
bb3e91
bb3e91
Name of the secret driver to be used.
bb3e91
Currently valid values are:
bb3e91
  * file
bb3e91
  * pass
bb3e91
bb3e91
**[secrets.opts]**
bb3e91
bb3e91
The driver specific options object.
bb3e91
bb3e91
## MACHINE TABLE
bb3e91
The `machine` table contains configurations for podman machine VMs
bb3e91
bb3e91
**cpus**=1
bb3e91
Number of CPU's a machine is created with.
bb3e91
bb3e91
**disk_size**=10
bb3e91
bb3e91
The size of the disk in GB created when init-ing a podman-machine VM
bb3e91
bb3e91
**image**=""
bb3e91
bb3e91
Default image used when creating a new VM using `podman machine init`.
bb3e91
Options: On Linux/Mac, `testing`, `stable`, `next`. On Windows, the major
bb3e91
version of the OS (e.g `35`). For all platforms you can alternatively specify
bb3e91
a custom path or download URL to an image. The default is `testing` on
bb3e91
Linux/Mac, and `35` on Windows.
bb3e91
bb3e91
**memory**=2048
bb3e91
bb3e91
Memory in MB a machine is created with.
bb3e91
bb3e91
**user**=""
bb3e91
bb3e91
Username to use and create on the podman machine OS for rootless container
bb3e91
access. The default value is `user`. On Linux/Mac the default is`core`.
bb3e91
947b07
**volumes**=["$HOME:$HOME"]
947b07
947b07
Host directories to be mounted as volumes into the VM by default.
947b07
Environment variables like $HOME as well as complete paths are supported for
947b07
the source and destination. An optional third field `:ro` can be used to
947b07
tell the container engines to mount the volume readonly.
947b07
bb3e91
# FILES
bb3e91
bb3e91
**containers.conf**
bb3e91
bb3e91
Distributions often provide a `/usr/share/containers/containers.conf` file to
bb3e91
define default container configuration. Administrators can override fields in
bb3e91
this file by creating `/etc/containers/containers.conf` to specify their own
bb3e91
configuration. Rootless users can further override fields in the config by
bb3e91
creating a config file stored in the `$HOME/.config/containers/containers.conf` file.
bb3e91
bb3e91
If the `CONTAINERS_CONF` path environment variable is set, just
bb3e91
this path will be used. This is primarily used for testing.
bb3e91
bb3e91
Fields specified in the containers.conf file override the default options, as
bb3e91
well as options in previously read containers.conf files.
bb3e91
bb3e91
**storage.conf**
bb3e91
bb3e91
The `/etc/containers/storage.conf` file is the default storage configuration file.
bb3e91
Rootless users can override fields in the storage config by creating
bb3e91
`$HOME/.config/containers/storage.conf`.
bb3e91
bb3e91
If the `CONTAINERS_STORAGE_CONF` path environment variable is set, this path
bb3e91
is used for the storage.conf file rather than the default.
bb3e91
This is primarily used for testing.
bb3e91
bb3e91
# SEE ALSO
bb3e91
containers-storage.conf(5), containers-policy.json(5), containers-registries.conf(5), tmpfiles.d(5)
bb3e91
bb3e91
[toml]: https://github.com/toml-lang/toml