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