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