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