containers-common-1-91.el9
- Update shortnames and vendored components - Related: RHEL-27608 Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
parent
5ebc0aa189
commit
6bd89ce541
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,7 @@ Containerfile(Dockerfile) - automate the steps of creating a container image
|
|||||||
The **Containerfile** is a configuration file that automates the steps of creating a container image. It is similar to a Makefile. Container engines (Podman, Buildah, Docker) read instructions from the **Containerfile** to automate the steps otherwise performed manually to create an image. To build an image, create a file called **Containerfile**.
|
The **Containerfile** is a configuration file that automates the steps of creating a container image. It is similar to a Makefile. Container engines (Podman, Buildah, Docker) read instructions from the **Containerfile** to automate the steps otherwise performed manually to create an image. To build an image, create a file called **Containerfile**.
|
||||||
|
|
||||||
The **Containerfile** describes the steps taken to assemble the image. When the
|
The **Containerfile** describes the steps taken to assemble the image. When the
|
||||||
**Containerfile** has been created, call the `buildah bud`, `podman build`, `docker build` command,
|
**Containerfile** has been created, call the `buildah build`, `podman build`, `docker build` command,
|
||||||
using the path of context directory that contains **Containerfile** as the argument. Podman and Buildah default to **Containerfile** and will fall back to **Dockerfile**. Docker only will search for **Dockerfile** in the context directory.
|
using the path of context directory that contains **Containerfile** as the argument. Podman and Buildah default to **Containerfile** and will fall back to **Dockerfile**. Docker only will search for **Dockerfile** in the context directory.
|
||||||
|
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ A Containerfile is similar to a Makefile.
|
|||||||
# USAGE
|
# USAGE
|
||||||
|
|
||||||
```
|
```
|
||||||
buildah bud .
|
buildah build .
|
||||||
podman build .
|
podman build .
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ A Containerfile is similar to a Makefile.
|
|||||||
build.
|
build.
|
||||||
|
|
||||||
```
|
```
|
||||||
buildah bud -t repository/tag .
|
buildah build -t repository/tag .
|
||||||
podman build -t repository/tag .
|
podman build -t repository/tag .
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ A Containerfile is similar to a Makefile.
|
|||||||
`FROM image@digest [AS <name>]`
|
`FROM image@digest [AS <name>]`
|
||||||
|
|
||||||
-- The **FROM** instruction sets the base image for subsequent instructions. A
|
-- The **FROM** instruction sets the base image for subsequent instructions. A
|
||||||
valid Containerfile must have either **ARG** or *FROM** as its first instruction.
|
valid Containerfile must have either **ARG** or **FROM** as its first instruction.
|
||||||
If **FROM** is not the first instruction in the file, it may only be preceded by
|
If **FROM** is not the first instruction in the file, it may only be preceded by
|
||||||
one or more ARG instructions, which declare arguments that are used in the next FROM line in the Containerfile.
|
one or more ARG instructions, which declare arguments that are used in the next FROM line in the Containerfile.
|
||||||
The image can be any valid image. It is easy to start by pulling an image from the public
|
The image can be any valid image. It is easy to start by pulling an image from the public
|
||||||
@ -109,7 +109,7 @@ Current supported mount TYPES are bind, cache, secret and tmpfs.
|
|||||||
|
|
||||||
e.g.
|
e.g.
|
||||||
|
|
||||||
mount=type=bind,source=/path/on/host,destination=/path/in/container
|
mount=type=bind,source=/path/on/host,destination=/path/in/container,relabel=shared
|
||||||
|
|
||||||
mount=type=tmpfs,tmpfs-size=512M,destination=/path/in/container
|
mount=type=tmpfs,tmpfs-size=512M,destination=/path/in/container
|
||||||
|
|
||||||
@ -131,6 +131,18 @@ Current supported mount TYPES are bind, cache, secret and tmpfs.
|
|||||||
|
|
||||||
· from: stage or image name for the root of the source. Defaults to the build context.
|
· from: stage or image name for the root of the source. Defaults to the build context.
|
||||||
|
|
||||||
|
· relabel=shared, z: Relabels src content with a shared label.
|
||||||
|
|
||||||
|
. relabel=private, Z: Relabels src content with a private label.
|
||||||
|
|
||||||
|
Labeling systems like SELinux require proper labels on the bind mounted content mounted into a container. Without a label, the security system might prevent the processes running in side the container from using the content. By default, container engines do not change the labels set by the OS. The relabel flag tells the engine to relabel file objects on the shared mountz.
|
||||||
|
|
||||||
|
The relabel=shared and z options tell the engine that two or more containers will share the mount content. The engine labels the content with a shared content label.
|
||||||
|
|
||||||
|
The relabel=private and Z options tell the engine to label the content with a private unshared label. Only the current container can use a private mount.
|
||||||
|
|
||||||
|
Relabeling walks the file system under the mount and changes the label on each file, if the mount has thousands of inodes, this process takes a long time, delaying the start of the container.
|
||||||
|
|
||||||
· rw, read-write: allows writes on the mount.
|
· rw, read-write: allows writes on the mount.
|
||||||
|
|
||||||
Options specific to tmpfs:
|
Options specific to tmpfs:
|
||||||
@ -207,7 +219,7 @@ Container engines pass secret the secret file into the build using the `--secret
|
|||||||
|
|
||||||
**--mount**=*type=secret,TYPE-SPECIFIC-OPTION[,...]*
|
**--mount**=*type=secret,TYPE-SPECIFIC-OPTION[,...]*
|
||||||
|
|
||||||
- `id` is the identifier for the secret passed into the `buildah bud --secret` or `podman build --secret`. This identifier is associated with the RUN --mount identifier to use in the Containerfile.
|
- `id` is the identifier for the secret passed into the `buildah build --secret` or `podman build --secret`. This identifier is associated with the RUN --mount identifier to use in the Containerfile.
|
||||||
|
|
||||||
- `dst`|`target`|`destination` rename the secret file to a specific file in the Containerfile RUN command to use.
|
- `dst`|`target`|`destination` rename the secret file to a specific file in the Containerfile RUN command to use.
|
||||||
|
|
||||||
@ -224,7 +236,7 @@ RUN --mount=type=secret,id=mysecret,dst=/foobar cat /foobar
|
|||||||
The secret needs to be passed to the build using the --secret flag. The final image built does not container the secret file:
|
The secret needs to be passed to the build using the --secret flag. The final image built does not container the secret file:
|
||||||
|
|
||||||
```
|
```
|
||||||
buildah bud --no-cache --secret id=mysecret,src=mysecret.txt .
|
buildah build --no-cache --secret id=mysecret,src=mysecret.txt .
|
||||||
```
|
```
|
||||||
|
|
||||||
-- The **RUN** instruction executes any commands in a new layer on top of the current
|
-- The **RUN** instruction executes any commands in a new layer on top of the current
|
||||||
@ -463,7 +475,7 @@ The secret needs to be passed to the build using the --secret flag. The final im
|
|||||||
In the above example, the output of the **pwd** command is **a/b/c**.
|
In the above example, the output of the **pwd** command is **a/b/c**.
|
||||||
|
|
||||||
**ARG**
|
**ARG**
|
||||||
-- ARG <name>[=<default value>]
|
-- `ARG <name>[=<default value>]`
|
||||||
|
|
||||||
The `ARG` instruction defines a variable that users can pass at build-time to
|
The `ARG` instruction defines a variable that users can pass at build-time to
|
||||||
the builder with the `podman build` and `buildah build` commands using the
|
the builder with the `podman build` and `buildah build` commands using the
|
||||||
@ -594,6 +606,56 @@ The secret needs to be passed to the build using the --secret flag. The final im
|
|||||||
$ podman build --build-arg HTTPS_PROXY=https://my-proxy.example.com .
|
$ podman build --build-arg HTTPS_PROXY=https://my-proxy.example.com .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Platform/OS/Arch ARG**
|
||||||
|
-- `ARG <name>`
|
||||||
|
|
||||||
|
When building multi-arch manifest-lists or images for a foreign-architecture,
|
||||||
|
it's often helpful to have access to platform details within the `Containerfile`.
|
||||||
|
For example, when using a `RUN curl ...` command to install OS/Arch specific
|
||||||
|
binary into the image. Or, if certain `RUN` operations are known incompatible
|
||||||
|
or non-performant when emulating a specific architecture.
|
||||||
|
|
||||||
|
There are several named `ARG` variables available. The purpose of each should be
|
||||||
|
self-evident by its name. _However_, in all cases these ARG values are **not**
|
||||||
|
automatically populated. You must always declare them within each `FROM` section
|
||||||
|
of the `Containerfile`.
|
||||||
|
|
||||||
|
The available `ARG <name>` variables are available with two prefixes:
|
||||||
|
|
||||||
|
* `TARGET...` variable names represent details about the currently running build
|
||||||
|
context (i.e. "inside" the container). These are often the most useful:
|
||||||
|
* `TARGETOS`: For example `linux`
|
||||||
|
* `TARGETARCH`: For example `amd64`
|
||||||
|
* `TARGETPLATFORM`: For example `linux/amd64`
|
||||||
|
* `TARGETVARIANT`: Uncommonly used, specific to `TARGETARCH`
|
||||||
|
* `BUILD...` variable names signify details about the _host_ performing the build
|
||||||
|
(i.e. "outside" the container):
|
||||||
|
* `BUILDOS`: OS of host performing the build
|
||||||
|
* `BUILDARCH`: Arch of host performing the build
|
||||||
|
* `BUILDPLATFORM`: Combined OS/Arch of host performing the build
|
||||||
|
* `BUILDVARIANT`: Uncommonly used, specific to `BUILDARCH`
|
||||||
|
|
||||||
|
An example `Containerfile` that uses `TARGETARCH` to fetch an arch-specific binary could be:
|
||||||
|
|
||||||
|
```
|
||||||
|
FROM busybox
|
||||||
|
ARG TARGETARCH
|
||||||
|
RUN curl -sSf -O https://example.com/downloads/bin-${TARGETARCH}.zip
|
||||||
|
```
|
||||||
|
|
||||||
|
Assuming the host platform is `linux/amd64` and foreign-architecture emulation
|
||||||
|
enabled (e.g. `qemu-user-static`), then running the command:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ podman build --platform linux/s390x .
|
||||||
|
```
|
||||||
|
|
||||||
|
Would end up running `curl` on `https://example.com/downloads/bin-s390x.zip` and producing
|
||||||
|
a container image suited for the the `linux/s390x` platform. **Note:** Emulation isn't
|
||||||
|
strictly required, these special build-args will also function when building using
|
||||||
|
`podman farm build`.
|
||||||
|
|
||||||
|
|
||||||
**ONBUILD**
|
**ONBUILD**
|
||||||
-- `ONBUILD [INSTRUCTION]`
|
-- `ONBUILD [INSTRUCTION]`
|
||||||
The **ONBUILD** instruction adds a trigger instruction to an image. The
|
The **ONBUILD** instruction adds a trigger instruction to an image. The
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
# pick the oldest version on c/image, c/common, c/storage vendored in
|
# pick the oldest version on c/image, c/common, c/storage vendored in
|
||||||
# podman/skopeo/podman.
|
# podman/skopeo/podman.
|
||||||
%global skopeo_branch main
|
%global skopeo_branch main
|
||||||
%global image_branch v5.29.2
|
%global image_branch v5.32.0
|
||||||
%global common_branch v0.57.3
|
%global common_branch v0.60.0
|
||||||
%global storage_branch v1.51.0
|
%global storage_branch v1.55.0
|
||||||
%global shortnames_branch main
|
%global shortnames_branch main
|
||||||
|
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Name: containers-common
|
Name: containers-common
|
||||||
Version: 1
|
Version: 1
|
||||||
Release: 90%{?dist}
|
Release: 91%{?dist}
|
||||||
Summary: Common configuration and documentation for containers
|
Summary: Common configuration and documentation for containers
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
ExclusiveArch: %{go_arches}
|
ExclusiveArch: %{go_arches}
|
||||||
@ -173,6 +173,10 @@ EOF
|
|||||||
%{_datadir}/rhel/secrets/*
|
%{_datadir}/rhel/secrets/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 07 2024 Jindrich Novy <jnovy@redhat.com> - 2:1-91
|
||||||
|
- Update shortnames and vendored components
|
||||||
|
- Related: RHEL-27608
|
||||||
|
|
||||||
* Fri Apr 05 2024 Lokesh Mandvekar <lsm5@redhat.com> - 2:1-90
|
* Fri Apr 05 2024 Lokesh Mandvekar <lsm5@redhat.com> - 2:1-90
|
||||||
- Bump release to way higher than rhel 8.10 to preserve upgrade path
|
- Bump release to way higher than rhel 8.10 to preserve upgrade path
|
||||||
- Related: Jira:RHEL-31950
|
- Related: Jira:RHEL-31950
|
||||||
|
@ -19,6 +19,12 @@ Container engines will use the `$HOME/.config/containers/registries.conf` if it
|
|||||||
`credential-helpers`
|
`credential-helpers`
|
||||||
: An array of default credential helpers used as external credential stores. Note that "containers-auth.json" is a reserved value to use auth files as specified in containers-auth.json(5). The credential helpers are set to `["containers-auth.json"]` if none are specified.
|
: An array of default credential helpers used as external credential stores. Note that "containers-auth.json" is a reserved value to use auth files as specified in containers-auth.json(5). The credential helpers are set to `["containers-auth.json"]` if none are specified.
|
||||||
|
|
||||||
|
`additional-layer-store-auth-helper`
|
||||||
|
: A string containing the helper binary name. This enables passing registry credentials to an
|
||||||
|
Additional Layer Store every time an image is read using the `docker://`
|
||||||
|
transport so that it can access private registries. See the 'Enabling Additional Layer Store to access to private registries' section below for
|
||||||
|
more details.
|
||||||
|
|
||||||
### NAMESPACED `[[registry]]` SETTINGS
|
### NAMESPACED `[[registry]]` SETTINGS
|
||||||
|
|
||||||
The bulk of the configuration is represented as an array of `[[registry]]`
|
The bulk of the configuration is represented as an array of `[[registry]]`
|
||||||
@ -254,6 +260,30 @@ in order, and use the first one that exists.
|
|||||||
|
|
||||||
Note that a mirror is associated only with the current `[[registry]]` TOML table. If using the example above, pulling the image `registry.com/image:latest` will hence only reach out to `mirror.registry.com`, and the mirrors associated with `example.com/foo` will not be considered.
|
Note that a mirror is associated only with the current `[[registry]]` TOML table. If using the example above, pulling the image `registry.com/image:latest` will hence only reach out to `mirror.registry.com`, and the mirrors associated with `example.com/foo` will not be considered.
|
||||||
|
|
||||||
|
### Enabling Additional Layer Store to access to private registries
|
||||||
|
|
||||||
|
The `additional-layer-store-auth-helper` option enables passing registry
|
||||||
|
credentials to an Additional Layer Store so that it can access private registries.
|
||||||
|
|
||||||
|
When accessing a private registry via an Additional Layer Store, a helper binary needs to be provided. This helper binary is
|
||||||
|
registered via the `additional-layer-store-auth-helper` option. Every time an image
|
||||||
|
is read using the `docker://` transport, the specified helper binary is executed
|
||||||
|
and receives registry credentials from stdin in the following format.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"$image_reference": {
|
||||||
|
"username": "$username",
|
||||||
|
"password": "$password",
|
||||||
|
"identityToken": "$identityToken"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
The format of `$image_reference` is `$repo{:$tag|@$digest}`.
|
||||||
|
|
||||||
|
Additional Layer Stores can use this helper binary to access the private registry.
|
||||||
|
|
||||||
## VERSION 1 FORMAT - DEPRECATED
|
## VERSION 1 FORMAT - DEPRECATED
|
||||||
VERSION 1 format is still supported but it does not support
|
VERSION 1 format is still supported but it does not support
|
||||||
using registry mirrors, longest-prefix matches, or location rewriting.
|
using registry mirrors, longest-prefix matches, or location rewriting.
|
||||||
|
@ -27,7 +27,7 @@ No bare options are used. The format of TOML can be simplified to:
|
|||||||
The `storage` table supports the following options:
|
The `storage` table supports the following options:
|
||||||
|
|
||||||
**driver**=""
|
**driver**=""
|
||||||
Copy On Write (COW) container storage driver. Valid drivers are "overlay", "vfs", "devmapper", "aufs", "btrfs", and "zfs". Some drivers (for example, "zfs", "btrfs", and "aufs") may not work if your kernel lacks support for the filesystem.
|
Copy On Write (COW) container storage driver. Valid drivers are "overlay", "vfs", "aufs", "btrfs", and "zfs". Some drivers (for example, "zfs", "btrfs", and "aufs") may not work if your kernel lacks support for the filesystem.
|
||||||
This field is required to guarantee proper operation.
|
This field is required to guarantee proper operation.
|
||||||
Valid rootless drivers are "btrfs", "overlay", and "vfs".
|
Valid rootless drivers are "btrfs", "overlay", and "vfs".
|
||||||
Rootless users default to the driver defined in the system configuration when possible.
|
Rootless users default to the driver defined in the system configuration when possible.
|
||||||
@ -84,7 +84,7 @@ The `storage.options` table supports the following options:
|
|||||||
**additionalimagestores**=[]
|
**additionalimagestores**=[]
|
||||||
Paths to additional container image stores. Usually these are read/only and stored on remote network shares.
|
Paths to additional container image stores. Usually these are read/only and stored on remote network shares.
|
||||||
|
|
||||||
**pull_options** = {enable_partial_images = "false", use_hard_links = "false", ostree_repos=""}
|
**pull_options** = {enable_partial_images = "true", use_hard_links = "false", ostree_repos=""}
|
||||||
|
|
||||||
Allows specification of how storage is populated when pulling images. This
|
Allows specification of how storage is populated when pulling images. This
|
||||||
option can speed the pulling process of images compressed with format zstd:chunked. Containers/storage looks
|
option can speed the pulling process of images compressed with format zstd:chunked. Containers/storage looks
|
||||||
@ -95,7 +95,7 @@ container registry. These options can deduplicate pulling of content, disk
|
|||||||
storage of content and can allow the kernel to use less memory when running
|
storage of content and can allow the kernel to use less memory when running
|
||||||
containers.
|
containers.
|
||||||
|
|
||||||
containers/storage supports three keys
|
containers/storage supports four keys
|
||||||
* enable_partial_images="true" | "false"
|
* enable_partial_images="true" | "false"
|
||||||
Tells containers/storage to look for files previously pulled in storage
|
Tells containers/storage to look for files previously pulled in storage
|
||||||
rather then always pulling them from the container registry.
|
rather then always pulling them from the container registry.
|
||||||
@ -107,28 +107,10 @@ containers/storage supports three keys
|
|||||||
previously pulled content which can be used when attempting to avoid
|
previously pulled content which can be used when attempting to avoid
|
||||||
pulling content from the container registry
|
pulling content from the container registry
|
||||||
* convert_images = "false" | "true"
|
* convert_images = "false" | "true"
|
||||||
If set to true, containers/storage will convert images to the a format compatible with
|
If set to true, containers/storage will convert images to a format compatible with
|
||||||
partial pulls in order to take advantage of local deduplication and hardlinking. It is an
|
partial pulls in order to take advantage of local deduplication and hardlinking. It is an
|
||||||
expensive operation so it is not enabled by default.
|
expensive operation so it is not enabled by default.
|
||||||
|
|
||||||
**remap-uids=**""
|
|
||||||
**remap-gids=**""
|
|
||||||
Remap-UIDs/GIDs is the mapping from UIDs/GIDs as they should appear inside of a container, to the UIDs/GIDs outside of the container, and the length of the range of UIDs/GIDs. Additional mapped sets can be listed and will be heeded by libraries, but there are limits to the number of mappings which the kernel will allow when you later attempt to run a container.
|
|
||||||
|
|
||||||
Example
|
|
||||||
remap-uids = "0:1668442479:65536"
|
|
||||||
remap-gids = "0:1668442479:65536"
|
|
||||||
|
|
||||||
These mappings tell the container engines to map UID 0 inside of the container to UID 1668442479 outside. UID 1 will be mapped to 1668442480. UID 2 will be mapped to 1668442481, etc, for the next 65533 UIDs in succession.
|
|
||||||
|
|
||||||
**remap-user**=""
|
|
||||||
**remap-group**=""
|
|
||||||
Remap-User/Group is a user name which can be used to look up one or more UID/GID ranges in the /etc/subuid or /etc/subgid file. Mappings are set up starting with an in-container ID of 0 and then a host-level ID taken from the lowest range that matches the specified name, and using the length of that range. Additional ranges are then assigned, using the ranges which specify the lowest host-level IDs first, to the lowest not-yet-mapped in-container ID, until all of the entries have been used for maps. This setting overrides the Remap-UIDs/GIDs setting.
|
|
||||||
|
|
||||||
Example
|
|
||||||
remap-user = "containers"
|
|
||||||
remap-group = "containers"
|
|
||||||
|
|
||||||
**root-auto-userns-user**=""
|
**root-auto-userns-user**=""
|
||||||
Root-auto-userns-user is a user name which can be used to look up one or more UID/GID ranges in the /etc/subuid and /etc/subgid file. These ranges will be partitioned to containers configured to create automatically a user namespace. Containers configured to automatically create a user namespace can still overlap with containers having an explicit mapping set. This setting is ignored when running as rootless.
|
Root-auto-userns-user is a user name which can be used to look up one or more UID/GID ranges in the /etc/subuid and /etc/subgid file. These ranges will be partitioned to containers configured to create automatically a user namespace. Containers configured to automatically create a user namespace can still overlap with containers having an explicit mapping set. This setting is ignored when running as rootless.
|
||||||
|
|
||||||
@ -158,66 +140,6 @@ The `storage.options.btrfs` table supports the following options:
|
|||||||
**size**=""
|
**size**=""
|
||||||
Maximum size of a container image. This flag can be used to set quota on the size of container images. (format: <number>[<unit>], where unit = b (bytes), k (kilobytes), m (megabytes), or g (gigabytes))
|
Maximum size of a container image. This flag can be used to set quota on the size of container images. (format: <number>[<unit>], where unit = b (bytes), k (kilobytes), m (megabytes), or g (gigabytes))
|
||||||
|
|
||||||
### STORAGE OPTIONS FOR THINPOOL (devicemapper) TABLE
|
|
||||||
|
|
||||||
The `storage.options.thinpool` table supports the following options for the `devicemapper` driver:
|
|
||||||
|
|
||||||
**autoextend_percent**=""
|
|
||||||
Tells the thinpool driver the amount by which the thinpool needs to be grown. This is specified in terms of % of pool size. So a value of 20 means that when threshold is hit, pool will be grown by 20% of existing pool size. (default: 20%)
|
|
||||||
|
|
||||||
**autoextend_threshold**=""
|
|
||||||
Tells the driver the thinpool extension threshold in terms of percentage of pool size. For example, if threshold is 60, that means when pool is 60% full, threshold has been hit. (default: 80%)
|
|
||||||
|
|
||||||
**basesize**=""
|
|
||||||
Specifies the size to use when creating the base device, which limits the size of images and containers. (default: 10g)
|
|
||||||
|
|
||||||
**blocksize**=""
|
|
||||||
Specifies a custom blocksize to use for the thin pool. (default: 64k)
|
|
||||||
|
|
||||||
**directlvm_device**=""
|
|
||||||
Specifies a custom block storage device to use for the thin pool. Required for using graphdriver `devicemapper`.
|
|
||||||
|
|
||||||
**directlvm_device_force**=""
|
|
||||||
Tells driver to wipe device (directlvm_device) even if device already has a filesystem. (default: false)
|
|
||||||
|
|
||||||
**fs**="xfs"
|
|
||||||
Specifies the filesystem type to use for the base device. (default: xfs)
|
|
||||||
|
|
||||||
**log_level**=""
|
|
||||||
Sets the log level of devicemapper.
|
|
||||||
|
|
||||||
0: LogLevelSuppress 0 (default)
|
|
||||||
2: LogLevelFatal
|
|
||||||
3: LogLevelErr
|
|
||||||
4: LogLevelWarn
|
|
||||||
5: LogLevelNotice
|
|
||||||
6: LogLevelInfo
|
|
||||||
7: LogLevelDebug
|
|
||||||
|
|
||||||
**metadata_size**=""
|
|
||||||
metadata_size is used to set the `pvcreate --metadatasize` options when creating thin devices. (Default 128k)
|
|
||||||
|
|
||||||
**min_free_space**=""
|
|
||||||
Specifies the min free space percent in a thin pool required for new device creation to succeed. Valid values are from 0% - 99%. Value 0% disables. (default: 10%)
|
|
||||||
|
|
||||||
**mkfsarg**=""
|
|
||||||
Specifies extra mkfs arguments to be used when creating the base device.
|
|
||||||
|
|
||||||
**mountopt**=""
|
|
||||||
Comma separated list of default options to be used to mount container images. Suggested value "nodev". Mount options are documented in the mount(8) man page.
|
|
||||||
|
|
||||||
**size**=""
|
|
||||||
Maximum size of a container image. This flag can be used to set quota on the size of container images. (format: <number>[<unit>], where unit = b (bytes), k (kilobytes), m (megabytes), or g (gigabytes))
|
|
||||||
|
|
||||||
**use_deferred_deletion**=""
|
|
||||||
Marks thinpool device for deferred deletion. If the thinpool is in use when the driver attempts to delete it, the driver will attempt to delete device every 30 seconds until successful, or when it restarts. Deferred deletion permanently deletes the device and all data stored in the device will be lost. (default: true).
|
|
||||||
|
|
||||||
**use_deferred_removal**=""
|
|
||||||
Marks devicemapper block device for deferred removal. If the device is in use when its driver attempts to remove it, the driver tells the kernel to remove the device as soon as possible. Note this does not free up the disk space, use deferred deletion to fully remove the thinpool. (default: true).
|
|
||||||
|
|
||||||
**xfs_nospace_max_retries**=""
|
|
||||||
Specifies the maximum number of retries XFS should attempt to complete IO when ENOSPC (no space) error is returned by underlying storage device. (default: 0, which means to try continuously.)
|
|
||||||
|
|
||||||
### STORAGE OPTIONS FOR OVERLAY TABLE
|
### STORAGE OPTIONS FOR OVERLAY TABLE
|
||||||
|
|
||||||
The `storage.options.overlay` table supports the following options:
|
The `storage.options.overlay` table supports the following options:
|
||||||
@ -278,6 +200,9 @@ based file systems.
|
|||||||
**size**=""
|
**size**=""
|
||||||
Maximum size of a read/write layer. This flag can be used to set quota on the size of a read/write layer of a container. (format: <number>[<unit>], where unit = b (bytes), k (kilobytes), m (megabytes), or g (gigabytes))
|
Maximum size of a read/write layer. This flag can be used to set quota on the size of a read/write layer of a container. (format: <number>[<unit>], where unit = b (bytes), k (kilobytes), m (megabytes), or g (gigabytes))
|
||||||
|
|
||||||
|
**use_composefs** = "false"
|
||||||
|
Use ComposeFS to mount the data layers image. ComposeFS support is experimental and not recommended for production use. (default: false)
|
||||||
|
|
||||||
### STORAGE OPTIONS FOR VFS TABLE
|
### STORAGE OPTIONS FOR VFS TABLE
|
||||||
|
|
||||||
The `storage.options.vfs` table supports the following options:
|
The `storage.options.vfs` table supports the following options:
|
||||||
|
@ -9,7 +9,7 @@ containers-transports - description of supported transports for copying and stor
|
|||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
||||||
Tools which use the containers/image library, including skopeo(1), buildah(1), podman(1), all share a common syntax for referring to container images in various locations.
|
Tools which use the containers/image library, including skopeo(1), buildah(1), podman(1), all share a common syntax for referring to container images in various locations.
|
||||||
The general form of the syntax is _transport:details_, where details are dependent on the specified transport, which are documented below.
|
The general form of the syntax is _transport_`:`_details_, where details are dependent on the specified transport, which are documented below.
|
||||||
|
|
||||||
The semantics of the image names ultimately depend on the environment where
|
The semantics of the image names ultimately depend on the environment where
|
||||||
they are evaluated. For example: if evaluated on a remote server, image names
|
they are evaluated. For example: if evaluated on a remote server, image names
|
||||||
@ -18,14 +18,14 @@ directory of the image consumer.
|
|||||||
|
|
||||||
<!-- atomic: is deprecated and not documented here. -->
|
<!-- atomic: is deprecated and not documented here. -->
|
||||||
|
|
||||||
### **containers-storage**:[**[**storage-specifier**]**]{image-id|docker-reference[@image-id]}
|
### **containers-storage:**[**[**_storage-specifier_**]**]{_image-id_|_docker-reference_[**@**_image-id_]}
|
||||||
|
|
||||||
An image located in a local containers storage.
|
An image located in a local containers storage.
|
||||||
The format of _docker-reference_ is described in detail in the **docker** transport.
|
The format of _docker-reference_ is described in detail in the **docker** transport.
|
||||||
|
|
||||||
The _storage-specifier_ allows for referencing storage locations on the file system and has the format `[[driver@]root[+run-root][:options]]` where the optional `driver` refers to the storage driver (e.g., overlay or btrfs) and where `root` is an absolute path to the storage's root directory.
|
The _storage-specifier_ allows for referencing storage locations on the file system and has the format `[`[_driver_`@`]_root_[`+`_run-root_][`:`_options_]`]` where the optional _driver_ refers to the storage driver (e.g., `overlay` or `btrfs`) and where _root_ is an absolute path to the storage's root directory.
|
||||||
The optional `run-root` can be used to specify the run directory of the storage where all temporary writable content is stored.
|
The optional _run-root_ can be used to specify the run directory of the storage where all temporary writable content is stored.
|
||||||
The optional `options` are a comma-separated list of driver-specific options.
|
The optional _options_ are a comma-separated list of driver-specific options.
|
||||||
Please refer to containers-storage.conf(5) for further information on the drivers and supported options.
|
Please refer to containers-storage.conf(5) for further information on the drivers and supported options.
|
||||||
|
|
||||||
### **dir:**_path_
|
### **dir:**_path_
|
||||||
@ -40,34 +40,38 @@ By default, uses the authorization state in `$XDG_RUNTIME_DIR/containers/auth.js
|
|||||||
If the authorization state is not found there, `$HOME/.docker/config.json` is checked, which is set using docker-login(1).
|
If the authorization state is not found there, `$HOME/.docker/config.json` is checked, which is set using docker-login(1).
|
||||||
The containers-registries.conf(5) further allows for configuring various settings of a registry.
|
The containers-registries.conf(5) further allows for configuring various settings of a registry.
|
||||||
|
|
||||||
Note that a _docker-reference_ has the following format: _name_[**:**_tag_ | **@**_digest_].
|
Note that a _docker-reference_ has the following format: _name_[`:`_tag_ | `@`_digest_].
|
||||||
While the docker transport does not support both a tag and a digest at the same time some formats like containers-storage do.
|
While the docker transport does not support both a tag and a digest at the same time some formats like containers-storage do.
|
||||||
Digests can also be used in an image destination as long as the manifest matches the provided digest.
|
Digests can also be used in an image destination as long as the manifest matches the provided digest.
|
||||||
|
|
||||||
The docker transport supports pushing images without a tag or digest to a registry when the image name is suffixed with **@@unknown-digest@@**. The _name_**@@unknown-digest@@** reference format cannot be used with a reference that has a tag or digest.
|
The docker transport supports pushing images without a tag or digest to a registry when the image name is suffixed with `@@unknown-digest@@`. The _name_`@@unknown-digest@@` reference format cannot be used with a reference that has a tag or digest.
|
||||||
The digest of images can be explored with skopeo-inspect(1).
|
The digest of images can be explored with skopeo-inspect(1).
|
||||||
|
|
||||||
If `name` does not contain a slash, it is treated as `docker.io/library/name`.
|
If _name_ does not contain a slash, it is treated as `docker.io/library/`_name_.
|
||||||
Otherwise, the component before the first slash is checked if it is recognized as a `hostname[:port]` (i.e., it contains either a . or a :, or the component is exactly localhost).
|
Otherwise, the component before the first slash is checked if it is recognized as a _hostname_[`:`_port_] (i.e., it contains either a `.` or a `:`, or the component is exactly `localhost`).
|
||||||
If the first component of name is not recognized as a `hostname[:port]`, `name` is treated as `docker.io/name`.
|
If the first component of name is not recognized as a _hostname_[`:`_port_], _name_ is treated as `docker.io/`_name_.
|
||||||
|
|
||||||
### **docker-archive:**_path[:{docker-reference|@source-index}]_
|
### **docker-archive:**_path_[`:`{_docker-reference_|`@`_source-index_}]
|
||||||
|
|
||||||
An image is stored in the docker-save(1) formatted file.
|
An image is stored in the docker-save(1) formatted file.
|
||||||
_docker-reference_ must not contain a digest.
|
|
||||||
Alternatively, for reading archives, @_source-index_ is a zero-based index in archive manifest
|
Unless a tool explicitly documents otherwise,
|
||||||
(to access untagged images).
|
a write to a **docker-archive:** destination completely overwrites _path_, replacing it with the single provided image.
|
||||||
If neither _docker-reference_ nor @_source_index is specified when reading an archive, the archive must contain exactly one image.
|
|
||||||
|
|
||||||
The _path_ can refer to a stream, e.g. `docker-archive:/dev/stdin`.
|
The _path_ can refer to a stream, e.g. `docker-archive:/dev/stdin`.
|
||||||
|
|
||||||
### **docker-daemon:**_docker-reference|algo:digest_
|
_docker-reference_ must not contain a digest.
|
||||||
|
Alternatively, for reading archives, `@`_source-index_ is a zero-based index in archive manifest
|
||||||
|
(to access untagged images).
|
||||||
|
If neither _docker-reference_ nor `@`_source_index is specified when reading an archive, the archive must contain exactly one image.
|
||||||
|
|
||||||
|
### **docker-daemon:**_docker-reference_|_algo_`:`_digest_
|
||||||
|
|
||||||
An image stored in the docker daemon's internal storage.
|
An image stored in the docker daemon's internal storage.
|
||||||
The image must be specified as a _docker-reference_ or in an alternative _algo:digest_ format when being used as an image source.
|
The image must be specified as a _docker-reference_ or in an alternative _algo_`:`_digest_ format when being used as an image source.
|
||||||
The _algo:digest_ refers to the image ID reported by docker-inspect(1).
|
The _algo_`:`_digest_ refers to the image ID reported by docker-inspect(1).
|
||||||
|
|
||||||
### **oci:**_path[:reference]_
|
### **oci:**_path_[`:`_reference_]
|
||||||
|
|
||||||
An image in a directory structure compliant with the "Open Container Image Layout Specification" at _path_.
|
An image in a directory structure compliant with the "Open Container Image Layout Specification" at _path_.
|
||||||
|
|
||||||
@ -75,18 +79,21 @@ The _path_ value terminates at the first `:` character; any further `:` characte
|
|||||||
The _reference_ is used to set, or match, the `org.opencontainers.image.ref.name` annotation in the top-level index.
|
The _reference_ is used to set, or match, the `org.opencontainers.image.ref.name` annotation in the top-level index.
|
||||||
If _reference_ is not specified when reading an image, the directory must contain exactly one image.
|
If _reference_ is not specified when reading an image, the directory must contain exactly one image.
|
||||||
|
|
||||||
### **oci-archive:**_path[:reference]_
|
### **oci-archive:**_path_[`:`_reference_]
|
||||||
|
|
||||||
An image in a tar(1) archive with contents compliant with the "Open Container Image Layout Specification" at _path_.
|
An image in a tar(1) archive with contents compliant with the "Open Container Image Layout Specification" at _path_.
|
||||||
|
|
||||||
|
Unless a tool explicitly documents otherwise,
|
||||||
|
a write to an **oci-archive:** destination completely overwrites _path_, replacing it with the single provided image.
|
||||||
|
|
||||||
The _path_ value terminates at the first `:` character; any further `:` characters are not separators, but a part of _reference_.
|
The _path_ value terminates at the first `:` character; any further `:` characters are not separators, but a part of _reference_.
|
||||||
The _reference_ is used to set, or match, the `org.opencontainers.image.ref.name` annotation in the top-level index.
|
The _reference_ is used to set, or match, the `org.opencontainers.image.ref.name` annotation in the top-level index.
|
||||||
If _reference_ is not specified when reading an archive, the archive must contain exactly one image.
|
If _reference_ is not specified when reading an archive, the archive must contain exactly one image.
|
||||||
|
|
||||||
### **ostree:**_docker-reference[@/absolute/repo/path]_
|
### **ostree:**_docker-reference_[`@`_/absolute/repo/path_]
|
||||||
|
|
||||||
An image in the local ostree(1) repository.
|
An image in the local ostree(1) repository.
|
||||||
_/absolute/repo/path_ defaults to _/ostree/repo_.
|
_/absolute/repo/path_ defaults to `/ostree/repo`.
|
||||||
|
|
||||||
### **sif:**_path_
|
### **sif:**_path_
|
||||||
|
|
||||||
|
@ -10,7 +10,8 @@
|
|||||||
# locations in the following order:
|
# locations in the following order:
|
||||||
# 1. /usr/share/containers/containers.conf
|
# 1. /usr/share/containers/containers.conf
|
||||||
# 2. /etc/containers/containers.conf
|
# 2. /etc/containers/containers.conf
|
||||||
# 3. $HOME/.config/containers/containers.conf (Rootless containers ONLY)
|
# 3. $XDG_CONFIG_HOME/containers/containers.conf or
|
||||||
|
# $HOME/.config/containers/containers.conf if $XDG_CONFIG_HOME is not set
|
||||||
# Items specified in the latter containers.conf, if they exist, override the
|
# Items specified in the latter containers.conf, if they exist, override the
|
||||||
# previous containers.conf settings, or the default settings.
|
# previous containers.conf settings, or the default settings.
|
||||||
|
|
||||||
@ -164,6 +165,13 @@ default_sysctls = [
|
|||||||
#
|
#
|
||||||
#ipcns = "shareable"
|
#ipcns = "shareable"
|
||||||
|
|
||||||
|
# Default way to set an interface name inside container. Defaults to legacy
|
||||||
|
# pattern of ethX, where X is a integer, when left undefined.
|
||||||
|
# Options are:
|
||||||
|
# "device" Uses the network_interface name from the network config as interface name.
|
||||||
|
# Falls back to the ethX pattern if the network_interface is not set.
|
||||||
|
#interface_name = ""
|
||||||
|
|
||||||
# keyring tells the container engine whether to create
|
# keyring tells the container engine whether to create
|
||||||
# a kernel keyring for use within the container.
|
# a kernel keyring for use within the container.
|
||||||
#
|
#
|
||||||
@ -340,6 +348,14 @@ default_sysctls = [
|
|||||||
# "/usr/lib/netavark",
|
# "/usr/lib/netavark",
|
||||||
#]
|
#]
|
||||||
|
|
||||||
|
# The firewall driver to be used by netavark.
|
||||||
|
# The default is empty which means netavark will pick one accordingly. Current supported
|
||||||
|
# drivers are "iptables", "nftables", "none" (no firewall rules will be created) and "firewalld" (firewalld is
|
||||||
|
# experimental at the moment and not recommend outside of testing).
|
||||||
|
#
|
||||||
|
#firewall_driver = ""
|
||||||
|
|
||||||
|
|
||||||
# The network name of the default network to attach pods to.
|
# The network name of the default network to attach pods to.
|
||||||
#
|
#
|
||||||
#default_network = "podman"
|
#default_network = "podman"
|
||||||
@ -368,9 +384,9 @@ default_sysctls = [
|
|||||||
|
|
||||||
|
|
||||||
# Configure which rootless network program to use by default. Valid options are
|
# Configure which rootless network program to use by default. Valid options are
|
||||||
# `slirp4netns` (default) and `pasta`.
|
# `slirp4netns` and `pasta` (default).
|
||||||
#
|
#
|
||||||
#default_rootless_network_cmd = "slirp4netns"
|
#default_rootless_network_cmd = "pasta"
|
||||||
|
|
||||||
# Path to the directory where network configuration files are located.
|
# Path to the directory where network configuration files are located.
|
||||||
# For the CNI backend the default is "/etc/cni/net.d" as root
|
# For the CNI backend the default is "/etc/cni/net.d" as root
|
||||||
@ -419,6 +435,9 @@ default_sysctls = [
|
|||||||
|
|
||||||
# The compression format to use when pushing an image.
|
# The compression format to use when pushing an image.
|
||||||
# Valid options are: `gzip`, `zstd` and `zstd:chunked`.
|
# Valid options are: `gzip`, `zstd` and `zstd:chunked`.
|
||||||
|
# This field is ignored when pushing images to the docker-daemon and
|
||||||
|
# docker-archive formats. It is also ignored when the manifest format is set
|
||||||
|
# to v2s2.
|
||||||
#
|
#
|
||||||
#compression_format = "gzip"
|
#compression_format = "gzip"
|
||||||
|
|
||||||
@ -510,6 +529,15 @@ default_sysctls = [
|
|||||||
# with detailed information about the container.
|
# with detailed information about the container.
|
||||||
#events_container_create_inspect_data = false
|
#events_container_create_inspect_data = false
|
||||||
|
|
||||||
|
# Whenever Podman should log healthcheck events.
|
||||||
|
# With many running healthcheck on short interval Podman will spam the event
|
||||||
|
# log a lot as it generates a event for each single healthcheck run. Because
|
||||||
|
# this event is optional and only useful to external consumers that may want
|
||||||
|
# to know when a healthcheck is run or failed allow users to turn it off by
|
||||||
|
# setting it to false. The default is true.
|
||||||
|
#
|
||||||
|
#healthcheck_events = true
|
||||||
|
|
||||||
# A is a list of directories which are used to search for helper binaries.
|
# A is a list of directories which are used to search for helper binaries.
|
||||||
#
|
#
|
||||||
#helper_binaries_dir = [
|
#helper_binaries_dir = [
|
||||||
@ -525,6 +553,12 @@ default_sysctls = [
|
|||||||
# "/usr/share/containers/oci/hooks.d",
|
# "/usr/share/containers/oci/hooks.d",
|
||||||
#]
|
#]
|
||||||
|
|
||||||
|
# Directories to scan for CDI Spec files.
|
||||||
|
#
|
||||||
|
#cdi_spec_dirs = [
|
||||||
|
# "/etc/cdi",
|
||||||
|
#]
|
||||||
|
|
||||||
# Manifest Type (oci, v2s2, or v2s1) to use when pulling, pushing, building
|
# Manifest Type (oci, v2s2, or v2s1) to use when pulling, pushing, building
|
||||||
# container images. By default image pulled and pushed match the format of the
|
# container images. By default image pulled and pushed match the format of the
|
||||||
# source image. Building/committing defaults to OCI.
|
# source image. Building/committing defaults to OCI.
|
||||||
@ -541,7 +575,7 @@ default_sysctls = [
|
|||||||
#image_parallel_copies = 0
|
#image_parallel_copies = 0
|
||||||
|
|
||||||
# Tells container engines how to handle the built-in image volumes.
|
# Tells container engines how to handle the built-in image volumes.
|
||||||
# * bind: An anonymous named volume will be created and mounted
|
# * anonymous: An anonymous named volume will be created and mounted
|
||||||
# into the container.
|
# into the container.
|
||||||
# * tmpfs: The volume is mounted onto the container as a tmpfs,
|
# * tmpfs: The volume is mounted onto the container as a tmpfs,
|
||||||
# which allows users to create content that disappears when
|
# which allows users to create content that disappears when
|
||||||
@ -620,7 +654,8 @@ default_sysctls = [
|
|||||||
#
|
#
|
||||||
#no_pivot_root = false
|
#no_pivot_root = false
|
||||||
|
|
||||||
# Number of locks available for containers and pods.
|
# Number of locks available for containers, pods, and volumes. Each container,
|
||||||
|
# pod, and volume consumes 1 lock for as long as it exists.
|
||||||
# If this is changed, a lock renumber must be performed (e.g. with the
|
# If this is changed, a lock renumber must be performed (e.g. with the
|
||||||
# 'podman system renumber' command).
|
# 'podman system renumber' command).
|
||||||
#
|
#
|
||||||
@ -639,6 +674,16 @@ default_sysctls = [
|
|||||||
#
|
#
|
||||||
#remote = false
|
#remote = false
|
||||||
|
|
||||||
|
# Number of times to retry pulling/pushing images in case of failure
|
||||||
|
#
|
||||||
|
#retry = 3
|
||||||
|
|
||||||
|
# Delay between retries in case pulling/pushing image fails.
|
||||||
|
# If set, container engines will retry at the set interval,
|
||||||
|
# otherwise they delay 2 seconds and then exponentially back off.
|
||||||
|
#
|
||||||
|
#retry_delay = "2s"
|
||||||
|
|
||||||
# Default OCI runtime
|
# Default OCI runtime
|
||||||
#
|
#
|
||||||
#runtime = "crun"
|
#runtime = "crun"
|
||||||
@ -715,9 +760,6 @@ runtime = "crun"
|
|||||||
# A value of 0 is treated as no timeout.
|
# A value of 0 is treated as no timeout.
|
||||||
#volume_plugin_timeout = 5
|
#volume_plugin_timeout = 5
|
||||||
|
|
||||||
# Default timeout in seconds for podmansh logins.
|
|
||||||
#podmansh_timeout = 30
|
|
||||||
|
|
||||||
# Paths to look for a valid OCI runtime (crun, runc, kata, runsc, krun, etc)
|
# Paths to look for a valid OCI runtime (crun, runc, kata, runsc, krun, etc)
|
||||||
[engine.runtimes]
|
[engine.runtimes]
|
||||||
#crun = [
|
#crun = [
|
||||||
@ -730,6 +772,15 @@ runtime = "crun"
|
|||||||
# "/run/current-system/sw/bin/crun",
|
# "/run/current-system/sw/bin/crun",
|
||||||
#]
|
#]
|
||||||
|
|
||||||
|
#crun-vm = [
|
||||||
|
# "/usr/bin/crun-vm",
|
||||||
|
# "/usr/local/bin/crun-vm",
|
||||||
|
# "/usr/local/sbin/crun-vm",
|
||||||
|
# "/sbin/crun-vm",
|
||||||
|
# "/bin/crun-vm",
|
||||||
|
# "/run/current-system/sw/bin/crun-vm",
|
||||||
|
#]
|
||||||
|
|
||||||
#kata = [
|
#kata = [
|
||||||
# "/usr/bin/kata-runtime",
|
# "/usr/bin/kata-runtime",
|
||||||
# "/usr/sbin/kata-runtime",
|
# "/usr/sbin/kata-runtime",
|
||||||
@ -785,16 +836,15 @@ runtime = "crun"
|
|||||||
#
|
#
|
||||||
#disk_size=10
|
#disk_size=10
|
||||||
|
|
||||||
# Default image URI when creating a new VM using `podman machine init`.
|
# Default Image used when creating a new VM using `podman machine init`.
|
||||||
# Options: On Linux/Mac, `testing`, `stable`, `next`. On Windows, the major
|
# Can be specified as registry with a bootable OCI artifact, download URL, or a local path.
|
||||||
# version of the OS (e.g `36`) for Fedora 36. For all platforms you can
|
# Registry target must be in the form of `docker://registry/repo/image:version`.
|
||||||
# alternatively specify a custom download URL to an image. Container engines
|
# Container engines translate URIs $OS and $ARCH to the native OS and ARCH.
|
||||||
# translate URIs $OS and $ARCH to the native OS and ARCH. URI
|
# URI "https://example.com/$OS/$ARCH/foobar.ami" would become
|
||||||
# "https://example.com/$OS/$ARCH/foobar.ami" becomes
|
|
||||||
# "https://example.com/linux/amd64/foobar.ami" on a Linux AMD machine.
|
# "https://example.com/linux/amd64/foobar.ami" on a Linux AMD machine.
|
||||||
# The default value is `testing`.
|
# If unspecified, the default Podman machine image will be used.
|
||||||
#
|
#
|
||||||
#image = "testing"
|
#image = ""
|
||||||
|
|
||||||
# Memory in MB a machine is created with.
|
# Memory in MB a machine is created with.
|
||||||
#
|
#
|
||||||
@ -819,6 +869,11 @@ runtime = "crun"
|
|||||||
#
|
#
|
||||||
#provider = ""
|
#provider = ""
|
||||||
|
|
||||||
|
# Rosetta supports running x86_64 Linux binaries on a Podman machine on Apple silicon.
|
||||||
|
# The default value is `true`. Supported on AppleHV(arm64) machines only.
|
||||||
|
#
|
||||||
|
#rosetta=true
|
||||||
|
|
||||||
# The [machine] table MUST be the last entry in this file.
|
# The [machine] table MUST be the last entry in this file.
|
||||||
# (Unless another table is added)
|
# (Unless another table is added)
|
||||||
# TOML does not provide a way to end a table other than a further table being
|
# TOML does not provide a way to end a table other than a further table being
|
||||||
@ -832,3 +887,14 @@ runtime = "crun"
|
|||||||
#
|
#
|
||||||
# map of existing farms
|
# map of existing farms
|
||||||
#[farms.list]
|
#[farms.list]
|
||||||
|
|
||||||
|
[podmansh]
|
||||||
|
# Shell to spawn in container. Default: /bin/sh.
|
||||||
|
#shell = "/bin/sh"
|
||||||
|
#
|
||||||
|
# Name of the container the podmansh user should join.
|
||||||
|
#container = "podmansh"
|
||||||
|
#
|
||||||
|
# Default timeout in seconds for podmansh logins.
|
||||||
|
# Favored over the deprecated "podmansh_timeout" field.
|
||||||
|
#timeout = 30
|
||||||
|
@ -11,10 +11,9 @@ a TOML format that can be easily modified and versioned.
|
|||||||
|
|
||||||
Container engines read the __/usr/share/containers/containers.conf__,
|
Container engines read the __/usr/share/containers/containers.conf__,
|
||||||
__/etc/containers/containers.conf__, and __/etc/containers/containers.conf.d/\*.conf__
|
__/etc/containers/containers.conf__, and __/etc/containers/containers.conf.d/\*.conf__
|
||||||
files if they exist.
|
for global configuration that effects all users.
|
||||||
When running in rootless mode, they also read
|
For user specific configuration it reads __\$XDG_CONFIG_HOME/containers/containers.conf__ and
|
||||||
__$HOME/.config/containers/containers.conf__ and
|
__\$XDG_CONFIG_HOME/containers/containers.conf.d/\*.conf__ files. When `$XDG_CONFIG_HOME` is not set it falls back to using `$HOME/.config` instead.
|
||||||
__$HOME/.config/containers/containers.conf.d/\*.conf__ files.
|
|
||||||
|
|
||||||
Fields specified in containers conf override the default options, as well as
|
Fields specified in containers conf override the default options, as well as
|
||||||
options in previously read containers.conf files.
|
options in previously read containers.conf files.
|
||||||
@ -42,13 +41,13 @@ instance, `CONTAINERS_CONF=/tmp/my_containers.conf`.
|
|||||||
|
|
||||||
## MODULES
|
## MODULES
|
||||||
A module is a containers.conf file located directly in or a sub-directory of the following three directories:
|
A module is a containers.conf file located directly in or a sub-directory of the following three directories:
|
||||||
- __$HOME/.config/containers/containers.conf.modules__
|
- __\$XDG_CONFIG_HOME/containers/containers.conf.modules__ or __\$HOME/.config/containers/containers.conf.modules__ if `$XDG_CONFIG_HOME` is not set.
|
||||||
- __/etc/containers/containers.conf.modules__
|
- __/etc/containers/containers.conf.modules__
|
||||||
- __/usr/share/containers/containers.conf.modules__
|
- __/usr/share/containers/containers.conf.modules__
|
||||||
|
|
||||||
Files in those locations are not loaded by default but only on-demand. They are loaded after all system and user configuration files but before `CONTAINERS_CONF_OVERRIDE` hence allowing for overriding system and user configs.
|
Files in those locations are not loaded by default but only on-demand. They are loaded after all system and user configuration files but before `CONTAINERS_CONF_OVERRIDE` hence allowing for overriding system and user configs.
|
||||||
|
|
||||||
Modules are currently supported by podman(1). The `podman --module` flag allows for loading a module and can be specified multiple times. If the specified value is an absolute path, the config file will be loaded directly. Relative paths are resolved relative to the three module directories mentioned above and in the specified order such that modules in `$HOME` allow for overriding those in `/etc` and `/usr/share`. Modules in `$HOME` (or `$XDG_CONFIG_HOME` if specified) are only used for rootless users.
|
Modules are currently supported by podman(1). The `podman --module` flag allows for loading a module and can be specified multiple times. If the specified value is an absolute path, the config file will be loaded directly. Relative paths are resolved relative to the three module directories mentioned above and in the specified order such that modules in `$XDG_CONFIG_HOME/$HOME` allow for overriding those in `/etc` and `/usr/share`.
|
||||||
|
|
||||||
## APPENDING TO STRING ARRAYS
|
## APPENDING TO STRING ARRAYS
|
||||||
|
|
||||||
@ -59,7 +58,7 @@ Consider the following example:
|
|||||||
modules1.conf: env=["1=true"]
|
modules1.conf: env=["1=true"]
|
||||||
modules2.conf: env=["2=true"]
|
modules2.conf: env=["2=true"]
|
||||||
modules3.conf: env=["3=true", {append=true}]
|
modules3.conf: env=["3=true", {append=true}]
|
||||||
modules3.conf: env=["4=true"]
|
modules4.conf: env=["4=true"]
|
||||||
```
|
```
|
||||||
|
|
||||||
After loading the files in the given order, the final contents are `env=["2=true", "3=true", "4=true"]`. If modules4.conf would set `{append=false}`, the final contents would be `env=["4=true"]`.
|
After loading the files in the given order, the final contents are `env=["2=true", "3=true", "4=true"]`. If modules4.conf would set `{append=false}`, the final contents would be `env=["4=true"]`.
|
||||||
@ -118,7 +117,7 @@ Options are:
|
|||||||
|
|
||||||
**cgroupns**="private"
|
**cgroupns**="private"
|
||||||
|
|
||||||
Default way to to create a cgroup namespace for the container.
|
Default way to create a cgroup namespace for the container.
|
||||||
Options are:
|
Options are:
|
||||||
`private` Create private Cgroup Namespace for the container.
|
`private` Create private Cgroup Namespace for the container.
|
||||||
`host` Share host Cgroup Namespace with the container.
|
`host` Share host Cgroup Namespace with the container.
|
||||||
@ -227,9 +226,16 @@ Path to the container-init binary, which forwards signals and reaps processes
|
|||||||
within containers. Note that the container-init binary will only be used when
|
within containers. Note that the container-init binary will only be used when
|
||||||
the `--init` for podman-create and podman-run is set.
|
the `--init` for podman-create and podman-run is set.
|
||||||
|
|
||||||
|
**interface_name**=""
|
||||||
|
|
||||||
|
Default way to set interface names inside containers. Defaults to legacy pattern
|
||||||
|
of ethX, where X is an integer, when left undefined.
|
||||||
|
Options are:
|
||||||
|
`device` Uses the network_interface name from the network config as interface name. Falls back to the ethX pattern if the network_interface is not set.
|
||||||
|
|
||||||
**ipcns**="shareable"
|
**ipcns**="shareable"
|
||||||
|
|
||||||
Default way to to create a IPC namespace for the container.
|
Default way to create a IPC namespace for the container.
|
||||||
Options are:
|
Options are:
|
||||||
`host` Share host IPC Namespace with the container.
|
`host` Share host IPC Namespace with the container.
|
||||||
`none` Create shareable IPC Namespace for the container without a private /dev/shm.
|
`none` Create shareable IPC Namespace for the container without a private /dev/shm.
|
||||||
@ -276,7 +282,7 @@ Example: [ "type=bind,source=/var/lib/foobar,destination=/var/lib/foobar,ro", ]
|
|||||||
|
|
||||||
**netns**="private"
|
**netns**="private"
|
||||||
|
|
||||||
Default way to to create a NET namespace for the container.
|
Default way to create a NET namespace for the container.
|
||||||
Options are:
|
Options are:
|
||||||
`private` Create private NET Namespace for the container.
|
`private` Create private NET Namespace for the container.
|
||||||
`host` Share host NET Namespace with the container.
|
`host` Share host NET Namespace with the container.
|
||||||
@ -293,7 +299,7 @@ Tune the host's OOM preferences for containers (accepts values from -1000 to 100
|
|||||||
|
|
||||||
**pidns**="private"
|
**pidns**="private"
|
||||||
|
|
||||||
Default way to to create a PID namespace for the container.
|
Default way to create a PID namespace for the container.
|
||||||
Options are:
|
Options are:
|
||||||
`private` Create private PID Namespace for the container.
|
`private` Create private PID Namespace for the container.
|
||||||
`host` Share host PID Namespace with the container.
|
`host` Share host PID Namespace with the container.
|
||||||
@ -346,14 +352,14 @@ Sets umask inside the container.
|
|||||||
|
|
||||||
**userns**="host"
|
**userns**="host"
|
||||||
|
|
||||||
Default way to to create a USER namespace for the container.
|
Default way to create a USER namespace for the container.
|
||||||
Options are:
|
Options are:
|
||||||
`private` Create private USER Namespace for the container.
|
`private` Create private USER Namespace for the container.
|
||||||
`host` Share host USER Namespace with the container.
|
`host` Share host USER Namespace with the container.
|
||||||
|
|
||||||
**utsns**="private"
|
**utsns**="private"
|
||||||
|
|
||||||
Default way to to create a UTS namespace for the container.
|
Default way to create a UTS namespace for the container.
|
||||||
Options are:
|
Options are:
|
||||||
`private` Create private UTS Namespace for the container.
|
`private` Create private UTS Namespace for the container.
|
||||||
`host` Share host UTS Namespace with the container.
|
`host` Share host UTS Namespace with the container.
|
||||||
@ -436,10 +442,10 @@ default_subnet_pools = [
|
|||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
**default_rootless_network_cmd**="slirp4netns"
|
**default_rootless_network_cmd**="pasta"
|
||||||
|
|
||||||
Configure which rootless network program to use by default. Valid options are
|
Configure which rootless network program to use by default. Valid options are
|
||||||
`slirp4netns` (default) and `pasta`.
|
`slirp4netns` and `pasta` (default).
|
||||||
|
|
||||||
**network_config_dir**="/etc/cni/net.d/"
|
**network_config_dir**="/etc/cni/net.d/"
|
||||||
|
|
||||||
@ -449,6 +455,13 @@ and __$HOME/.config/cni/net.d__ as rootless.
|
|||||||
For the netavark backend "/etc/containers/networks" is used as root
|
For the netavark backend "/etc/containers/networks" is used as root
|
||||||
and "$graphroot/networks" as rootless.
|
and "$graphroot/networks" as rootless.
|
||||||
|
|
||||||
|
**firewall_driver**=""
|
||||||
|
|
||||||
|
The firewall driver to be used by netavark.
|
||||||
|
The default is empty which means netavark will pick one accordingly. Current supported
|
||||||
|
drivers are "iptables", "nftables", "none" (no firewall rules will be created) and "firewalld" (firewalld is
|
||||||
|
experimental at the moment and not recommend outside of testing).
|
||||||
|
|
||||||
**dns_bind_port**=53
|
**dns_bind_port**=53
|
||||||
|
|
||||||
Port to use for dns forwarding daemon with netavark in rootful bridge
|
Port to use for dns forwarding daemon with netavark in rootful bridge
|
||||||
@ -569,7 +582,7 @@ The unit can be b (bytes), k (kilobytes), m (megabytes) or g (gigabytes).
|
|||||||
The format for the size is `<number><unit>`, e.g., `1b` or `3g`.
|
The format for the size is `<number><unit>`, e.g., `1b` or `3g`.
|
||||||
If no unit is included then the size will be in bytes.
|
If no unit is included then the size will be in bytes.
|
||||||
When the limit is exceeded, the logfile will be rotated and the old one will be deleted.
|
When the limit is exceeded, the logfile will be rotated and the old one will be deleted.
|
||||||
If the maximumn size is set to 0, then no limit will be applied,
|
If the maximum size is set to 0, then no limit will be applied,
|
||||||
and the logfile will not be rotated.
|
and the logfile will not be rotated.
|
||||||
|
|
||||||
**events_logger**="journald"
|
**events_logger**="journald"
|
||||||
@ -589,6 +602,17 @@ Valid values are: `file`, `journald`, and `none`.
|
|||||||
Creates a more verbose container-create event which includes a JSON payload
|
Creates a more verbose container-create event which includes a JSON payload
|
||||||
with detailed information about the container. Set to false by default.
|
with detailed information about the container. Set to false by default.
|
||||||
|
|
||||||
|
**healthcheck_events**=true|false
|
||||||
|
|
||||||
|
Whenever Podman should log healthcheck events.
|
||||||
|
With many running healthcheck on short interval Podman will spam the event
|
||||||
|
log a lot as it generates a event for each single healthcheck run. Because
|
||||||
|
this event is optional and only useful to external consumers that may want
|
||||||
|
to know when a healthcheck is run or failed allow users to turn it off by
|
||||||
|
setting it to false.
|
||||||
|
|
||||||
|
Default is true.
|
||||||
|
|
||||||
**helper_binaries_dir**=["/usr/libexec/podman", ...]
|
**helper_binaries_dir**=["/usr/libexec/podman", ...]
|
||||||
|
|
||||||
A is a list of directories which are used to search for helper binaries.
|
A is a list of directories which are used to search for helper binaries.
|
||||||
@ -630,6 +654,10 @@ The default path on Windows is:
|
|||||||
|
|
||||||
Path to the OCI hooks directories for automatically executed hooks.
|
Path to the OCI hooks directories for automatically executed hooks.
|
||||||
|
|
||||||
|
**cdi_spec_dirs**=["/etc/cdi", ...]
|
||||||
|
|
||||||
|
Directories to scan for CDI Spec files.
|
||||||
|
|
||||||
**image_default_format**="oci"|"v2s2"|"v2s1"
|
**image_default_format**="oci"|"v2s2"|"v2s1"
|
||||||
|
|
||||||
Manifest Type (oci, v2s2, or v2s1) to use when pulling, pushing, building
|
Manifest Type (oci, v2s2, or v2s1) to use when pulling, pushing, building
|
||||||
@ -722,10 +750,11 @@ Whether to use chroot instead of pivot_root in the runtime.
|
|||||||
|
|
||||||
**num_locks**=2048
|
**num_locks**=2048
|
||||||
|
|
||||||
Number of locks available for containers and pods. Each created container or
|
Number of locks available for containers, pods, and volumes.
|
||||||
pod consumes one lock. The default number available is 2048. If this is
|
Each created container, pod, or volume consumes one lock.
|
||||||
changed, a lock renumbering must be performed, using the
|
Locks are recycled and can be reused after the associated container, pod, or volume is removed.
|
||||||
`podman system renumber` command.
|
The default number available is 2048.
|
||||||
|
If this is changed, a lock renumbering must be performed, using the `podman system renumber` command.
|
||||||
|
|
||||||
**pod_exit_policy**="continue"
|
**pod_exit_policy**="continue"
|
||||||
|
|
||||||
@ -749,13 +778,21 @@ Pull image before running or creating a container. The default is **missing**.
|
|||||||
Indicates whether the application should be running in remote mode. This flag modifies the
|
Indicates whether the application should be running in remote mode. This flag modifies the
|
||||||
--remote option on container engines. Setting the flag to true will default `podman --remote=true` for access to the remote Podman service.
|
--remote option on container engines. Setting the flag to true will default `podman --remote=true` for access to the remote Podman service.
|
||||||
|
|
||||||
|
**retry** = 3
|
||||||
|
|
||||||
|
Number of times to retry pulling/pushing images in case of failure.
|
||||||
|
|
||||||
|
**retry_delay** = ""
|
||||||
|
|
||||||
|
Delay between retries in case pulling/pushing image fails. If set, container engines will retry at the set interval, otherwise they delay 2 seconds and then exponentially back off.
|
||||||
|
|
||||||
**runtime**=""
|
**runtime**=""
|
||||||
|
|
||||||
Default OCI specific runtime in runtimes that will be used by default. Must
|
Default OCI specific runtime in runtimes that will be used by default. Must
|
||||||
refer to a member of the runtimes table. Default runtime will be searched for
|
refer to a member of the runtimes table. Default runtime will be searched for
|
||||||
on the system using the priority: "crun", "runc", "kata".
|
on the system using the priority: "crun", "runc", "runj", "kata", "runsc", "ocijail"
|
||||||
|
|
||||||
**runtime_supports_json**=["crun", "runc", "kata", "runsc", "youki", "krun"]
|
**runtime_supports_json**=["crun", "crun-vm", "runc", "kata", "runsc", "youki", "krun"]
|
||||||
|
|
||||||
The list of the OCI runtimes that support `--format=json`.
|
The list of the OCI runtimes that support `--format=json`.
|
||||||
|
|
||||||
@ -763,7 +800,7 @@ The list of the OCI runtimes that support `--format=json`.
|
|||||||
|
|
||||||
The list of OCI runtimes that support running containers with KVM separation.
|
The list of OCI runtimes that support running containers with KVM separation.
|
||||||
|
|
||||||
**runtime_supports_nocgroups**=["crun", "krun"]
|
**runtime_supports_nocgroups**=["crun", "crun-vm", "krun"]
|
||||||
|
|
||||||
The list of OCI runtimes that support running containers without CGroups.
|
The list of OCI runtimes that support running containers without CGroups.
|
||||||
|
|
||||||
@ -814,7 +851,10 @@ the primary uid/gid of the container.
|
|||||||
|
|
||||||
**compression_format**="gzip"
|
**compression_format**="gzip"
|
||||||
|
|
||||||
Specifies the compression format to use when pushing an image. Supported values are: `gzip`, `zstd` and `zstd:chunked`.
|
Specifies the compression format to use when pushing an image. Supported values
|
||||||
|
are: `gzip`, `zstd` and `zstd:chunked`. This field is ignored when pushing
|
||||||
|
images to the docker-daemon and docker-archive formats. It is also ignored
|
||||||
|
when the manifest format is set to v2s2.
|
||||||
|
|
||||||
**compression_level**="5"
|
**compression_level**="5"
|
||||||
|
|
||||||
@ -823,10 +863,6 @@ depend on the compression format used. For gzip, valid options are
|
|||||||
1-9, with a default of 5. For zstd, valid options are 1-20, with a
|
1-9, with a default of 5. For zstd, valid options are 1-20, with a
|
||||||
default of 3.
|
default of 3.
|
||||||
|
|
||||||
**podmansh_timeout**=30
|
|
||||||
|
|
||||||
Number of seconds to wait for podmansh logins.
|
|
||||||
|
|
||||||
## SERVICE DESTINATION TABLE
|
## SERVICE DESTINATION TABLE
|
||||||
The `engine.service_destinations` table contains configuration options used to set up remote connections to the podman service for the podman API.
|
The `engine.service_destinations` table contains configuration options used to set up remote connections to the podman service for the podman API.
|
||||||
|
|
||||||
@ -883,13 +919,13 @@ The size of the disk in GB created when init-ing a podman-machine VM
|
|||||||
|
|
||||||
**image**=""
|
**image**=""
|
||||||
|
|
||||||
Default image URI when creating a new VM using `podman machine init`.
|
Image used when creating a new VM using `podman machine init`.
|
||||||
Options: On Linux/Mac, `testing`, `stable`, `next`. On Windows, the major
|
Can be specified as a registry with a bootable OCI artifact, download URL, or a local path.
|
||||||
version of the OS (e.g `36`) for Fedora 36. For all platforms you can
|
Registry target must be in the form of `docker://registry/repo/image:version`.
|
||||||
alternatively specify a custom download URL to an image. Container engines
|
Container engines translate URIs $OS and $ARCH to the native OS and ARCH.
|
||||||
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.
|
URI "https://example.com/$OS/$ARCH/foobar.ami" would become
|
||||||
The default value
|
"https://example.com/linux/amd64/foobar.ami" on a Linux AMD machine.
|
||||||
is `testing` on Linux/Mac, and on Windows.
|
If unspecified, the default Podman machine image will be used.
|
||||||
|
|
||||||
**memory**=2048
|
**memory**=2048
|
||||||
|
|
||||||
@ -917,6 +953,11 @@ Virtualization provider to be used for running a podman-machine VM. Empty value
|
|||||||
is interpreted as the default provider for the current host OS. On Linux/Mac
|
is interpreted as the default provider for the current host OS. On Linux/Mac
|
||||||
default is `QEMU` and on Windows it is `WSL`.
|
default is `QEMU` and on Windows it is `WSL`.
|
||||||
|
|
||||||
|
**rosetta**="true"
|
||||||
|
|
||||||
|
Rosetta supports running x86_64 Linux binaries on a Podman machine on Apple silicon.
|
||||||
|
The default value is `true`. Supported on AppleHV(arm64) machines only.
|
||||||
|
|
||||||
## FARMS TABLE
|
## FARMS TABLE
|
||||||
The `farms` table contains configuration options used to group up remote connections into farms that will be used when sending out builds to different machines in a farm via `podman buildfarm`.
|
The `farms` table contains configuration options used to group up remote connections into farms that will be used when sending out builds to different machines in a farm via `podman buildfarm`.
|
||||||
|
|
||||||
@ -928,6 +969,25 @@ The default farm to use when farming out builds.
|
|||||||
|
|
||||||
Map of farms created where the key is the farm name and the value is the list of system connections.
|
Map of farms created where the key is the farm name and the value is the list of system connections.
|
||||||
|
|
||||||
|
## PODMANSH TABLE
|
||||||
|
The `podmansh` table contains configuration options used by podmansh.
|
||||||
|
|
||||||
|
**shell**="/bin/sh"
|
||||||
|
|
||||||
|
The shell to spawn in the container.
|
||||||
|
The default value is `/bin/sh`.
|
||||||
|
|
||||||
|
**container**="podmansh"
|
||||||
|
|
||||||
|
Name of the container that podmansh joins.
|
||||||
|
The default value is `podmansh`.
|
||||||
|
|
||||||
|
**timeout**=0
|
||||||
|
|
||||||
|
Number of seconds to wait for podmansh logins. This value if favoured over the deprecated field `engine.podmansh_timeout` if set.
|
||||||
|
The default value is 30.
|
||||||
|
|
||||||
|
|
||||||
# FILES
|
# FILES
|
||||||
|
|
||||||
**containers.conf**
|
**containers.conf**
|
||||||
@ -937,8 +997,8 @@ provide a default configuration. Administrators can override fields in this
|
|||||||
file by creating __/etc/containers/containers.conf__ to specify their own
|
file by creating __/etc/containers/containers.conf__ to specify their own
|
||||||
configuration. They may also drop `.conf` files in
|
configuration. They may also drop `.conf` files in
|
||||||
__/etc/containers/containers.conf.d__ which will be loaded in alphanumeric order.
|
__/etc/containers/containers.conf.d__ which will be loaded in alphanumeric order.
|
||||||
Rootless users can further override fields in the config by creating a config
|
For user specific configuration it reads __\$XDG_CONFIG_HOME/containers/containers.conf__ and
|
||||||
file stored in the __$HOME/.config/containers/containers.conf__ file or __.conf__ files in __$HOME/.config/containers/containers.conf.d__.
|
__\$XDG_CONFIG_HOME/containers/containers.conf.d/\*.conf__ files. When `$XDG_CONFIG_HOME` is not set it falls back to using `$HOME/.config` instead.
|
||||||
|
|
||||||
Fields specified in a containers.conf file override the default options, as
|
Fields specified in a containers.conf file override the default options, as
|
||||||
well as options in previously loaded containers.conf files.
|
well as options in previously loaded containers.conf files.
|
||||||
|
99
seccomp.json
99
seccomp.json
@ -55,9 +55,16 @@
|
|||||||
{
|
{
|
||||||
"names": [
|
"names": [
|
||||||
"bdflush",
|
"bdflush",
|
||||||
|
"cachestat",
|
||||||
|
"futex_requeue",
|
||||||
|
"futex_wait",
|
||||||
|
"futex_waitv",
|
||||||
|
"futex_wake",
|
||||||
"io_pgetevents",
|
"io_pgetevents",
|
||||||
|
"io_pgetevents_time64",
|
||||||
"kexec_file_load",
|
"kexec_file_load",
|
||||||
"kexec_load",
|
"kexec_load",
|
||||||
|
"map_shadow_stack",
|
||||||
"migrate_pages",
|
"migrate_pages",
|
||||||
"move_pages",
|
"move_pages",
|
||||||
"nfsservctl",
|
"nfsservctl",
|
||||||
@ -72,9 +79,9 @@
|
|||||||
"pciconfig_write",
|
"pciconfig_write",
|
||||||
"sgetmask",
|
"sgetmask",
|
||||||
"ssetmask",
|
"ssetmask",
|
||||||
"swapcontext",
|
|
||||||
"swapoff",
|
"swapoff",
|
||||||
"swapon",
|
"swapon",
|
||||||
|
"syscall",
|
||||||
"sysfs",
|
"sysfs",
|
||||||
"uselib",
|
"uselib",
|
||||||
"userfaultfd",
|
"userfaultfd",
|
||||||
@ -149,6 +156,7 @@
|
|||||||
"fchdir",
|
"fchdir",
|
||||||
"fchmod",
|
"fchmod",
|
||||||
"fchmodat",
|
"fchmodat",
|
||||||
|
"fchmodat2",
|
||||||
"fchown",
|
"fchown",
|
||||||
"fchown32",
|
"fchown32",
|
||||||
"fchownat",
|
"fchownat",
|
||||||
@ -316,7 +324,6 @@
|
|||||||
"pwritev2",
|
"pwritev2",
|
||||||
"read",
|
"read",
|
||||||
"readahead",
|
"readahead",
|
||||||
"readdir",
|
|
||||||
"readlink",
|
"readlink",
|
||||||
"readlinkat",
|
"readlinkat",
|
||||||
"readv",
|
"readv",
|
||||||
@ -404,15 +411,12 @@
|
|||||||
"shmdt",
|
"shmdt",
|
||||||
"shmget",
|
"shmget",
|
||||||
"shutdown",
|
"shutdown",
|
||||||
"sigaction",
|
|
||||||
"sigaltstack",
|
"sigaltstack",
|
||||||
"signal",
|
"signal",
|
||||||
"signalfd",
|
"signalfd",
|
||||||
"signalfd4",
|
"signalfd4",
|
||||||
"sigpending",
|
|
||||||
"sigprocmask",
|
"sigprocmask",
|
||||||
"sigreturn",
|
"sigreturn",
|
||||||
"sigsuspend",
|
|
||||||
"socket",
|
"socket",
|
||||||
"socketcall",
|
"socketcall",
|
||||||
"socketpair",
|
"socketpair",
|
||||||
@ -427,7 +431,6 @@
|
|||||||
"sync",
|
"sync",
|
||||||
"sync_file_range",
|
"sync_file_range",
|
||||||
"syncfs",
|
"syncfs",
|
||||||
"syscall",
|
|
||||||
"sysinfo",
|
"sysinfo",
|
||||||
"syslog",
|
"syslog",
|
||||||
"tee",
|
"tee",
|
||||||
@ -440,7 +443,6 @@
|
|||||||
"timer_gettime64",
|
"timer_gettime64",
|
||||||
"timer_settime",
|
"timer_settime",
|
||||||
"timer_settime64",
|
"timer_settime64",
|
||||||
"timerfd",
|
|
||||||
"timerfd_create",
|
"timerfd_create",
|
||||||
"timerfd_gettime",
|
"timerfd_gettime",
|
||||||
"timerfd_gettime64",
|
"timerfd_gettime64",
|
||||||
@ -562,7 +564,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"names": [
|
"names": [
|
||||||
"sync_file_range2"
|
"sync_file_range2",
|
||||||
|
"swapcontext"
|
||||||
],
|
],
|
||||||
"action": "SCMP_ACT_ALLOW",
|
"action": "SCMP_ACT_ALLOW",
|
||||||
"args": [],
|
"args": [],
|
||||||
@ -642,6 +645,20 @@
|
|||||||
},
|
},
|
||||||
"excludes": {}
|
"excludes": {}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"names": [
|
||||||
|
"riscv_flush_icache"
|
||||||
|
],
|
||||||
|
"action": "SCMP_ACT_ALLOW",
|
||||||
|
"args": [],
|
||||||
|
"comment": "",
|
||||||
|
"includes": {
|
||||||
|
"arches": [
|
||||||
|
"riscv64"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"excludes": {}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"names": [
|
"names": [
|
||||||
"open_by_handle_at"
|
"open_by_handle_at"
|
||||||
@ -677,8 +694,8 @@
|
|||||||
"bpf",
|
"bpf",
|
||||||
"fanotify_init",
|
"fanotify_init",
|
||||||
"lookup_dcookie",
|
"lookup_dcookie",
|
||||||
"perf_event_open",
|
|
||||||
"quotactl",
|
"quotactl",
|
||||||
|
"quotactl_fd",
|
||||||
"setdomainname",
|
"setdomainname",
|
||||||
"sethostname",
|
"sethostname",
|
||||||
"setns"
|
"setns"
|
||||||
@ -695,11 +712,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"names": [
|
"names": [
|
||||||
"bpf",
|
|
||||||
"fanotify_init",
|
"fanotify_init",
|
||||||
"lookup_dcookie",
|
"lookup_dcookie",
|
||||||
"perf_event_open",
|
"perf_event_open",
|
||||||
"quotactl",
|
"quotactl",
|
||||||
|
"quotactl_fd",
|
||||||
"setdomainname",
|
"setdomainname",
|
||||||
"sethostname",
|
"sethostname",
|
||||||
"setns"
|
"setns"
|
||||||
@ -1047,6 +1064,68 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"excludes": {}
|
"excludes": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"names": [
|
||||||
|
"bpf"
|
||||||
|
],
|
||||||
|
"action": "SCMP_ACT_ERRNO",
|
||||||
|
"args": [],
|
||||||
|
"comment": "",
|
||||||
|
"includes": {},
|
||||||
|
"excludes": {
|
||||||
|
"caps": [
|
||||||
|
"CAP_SYS_ADMIN",
|
||||||
|
"CAP_BPF"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"errnoRet": 1,
|
||||||
|
"errno": "EPERM"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"names": [
|
||||||
|
"bpf"
|
||||||
|
],
|
||||||
|
"action": "SCMP_ACT_ALLOW",
|
||||||
|
"args": [],
|
||||||
|
"comment": "",
|
||||||
|
"includes": {
|
||||||
|
"caps": [
|
||||||
|
"CAP_BPF"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"excludes": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"names": [
|
||||||
|
"perf_event_open"
|
||||||
|
],
|
||||||
|
"action": "SCMP_ACT_ERRNO",
|
||||||
|
"args": [],
|
||||||
|
"comment": "",
|
||||||
|
"includes": {},
|
||||||
|
"excludes": {
|
||||||
|
"caps": [
|
||||||
|
"CAP_SYS_ADMIN",
|
||||||
|
"CAP_BPF"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"errnoRet": 1,
|
||||||
|
"errno": "EPERM"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"names": [
|
||||||
|
"perf_event_open"
|
||||||
|
],
|
||||||
|
"action": "SCMP_ACT_ALLOW",
|
||||||
|
"args": [],
|
||||||
|
"comment": "",
|
||||||
|
"includes": {
|
||||||
|
"caps": [
|
||||||
|
"CAP_PERFMON"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"excludes": {}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -20,6 +20,7 @@
|
|||||||
"registry" = "docker.io/library/registry"
|
"registry" = "docker.io/library/registry"
|
||||||
"swarm" = "docker.io/library/swarm"
|
"swarm" = "docker.io/library/swarm"
|
||||||
# Fedora
|
# Fedora
|
||||||
|
"fedora-bootc" = "registry.fedoraproject.org/fedora-bootc"
|
||||||
"fedora-minimal" = "registry.fedoraproject.org/fedora-minimal"
|
"fedora-minimal" = "registry.fedoraproject.org/fedora-minimal"
|
||||||
"fedora" = "registry.fedoraproject.org/fedora"
|
"fedora" = "registry.fedoraproject.org/fedora"
|
||||||
# Gentoo
|
# Gentoo
|
||||||
@ -56,6 +57,7 @@
|
|||||||
"rhel7" = "registry.access.redhat.com/rhel7"
|
"rhel7" = "registry.access.redhat.com/rhel7"
|
||||||
"rhel7.9" = "registry.access.redhat.com/rhel7.9"
|
"rhel7.9" = "registry.access.redhat.com/rhel7.9"
|
||||||
"rhel-atomic" = "registry.access.redhat.com/rhel-atomic"
|
"rhel-atomic" = "registry.access.redhat.com/rhel-atomic"
|
||||||
|
"rhel9-bootc" = "registry.redhat.io/rhel9/rhel-bootc"
|
||||||
"rhel-minimal" = "registry.access.redhat.com/rhel-minimal"
|
"rhel-minimal" = "registry.access.redhat.com/rhel-minimal"
|
||||||
"rhel-init" = "registry.access.redhat.com/rhel-init"
|
"rhel-init" = "registry.access.redhat.com/rhel-init"
|
||||||
"rhel7-atomic" = "registry.access.redhat.com/rhel7-atomic"
|
"rhel7-atomic" = "registry.access.redhat.com/rhel7-atomic"
|
||||||
@ -100,7 +102,7 @@
|
|||||||
"ubi9/buildah" = "registry.access.redhat.com/ubi9/buildah"
|
"ubi9/buildah" = "registry.access.redhat.com/ubi9/buildah"
|
||||||
"ubi9/skopeo" = "registry.access.redhat.com/ubi9/skopeo"
|
"ubi9/skopeo" = "registry.access.redhat.com/ubi9/skopeo"
|
||||||
# Rocky Linux
|
# Rocky Linux
|
||||||
"rockylinux" = "docker.io/library/rockylinux"
|
"rockylinux" = "quay.io/rockylinux/rockylinux"
|
||||||
# Debian
|
# Debian
|
||||||
"debian" = "docker.io/library/debian"
|
"debian" = "docker.io/library/debian"
|
||||||
# Kali Linux
|
# Kali Linux
|
||||||
|
114
storage.conf
114
storage.conf
@ -19,6 +19,10 @@ driver = "overlay"
|
|||||||
# Temporary storage location
|
# Temporary storage location
|
||||||
runroot = "/run/containers/storage"
|
runroot = "/run/containers/storage"
|
||||||
|
|
||||||
|
# Priority list for the storage drivers that will be tested one
|
||||||
|
# after the other to pick the storage driver if it is not defined.
|
||||||
|
# driver_priority = ["overlay", "btrfs"]
|
||||||
|
|
||||||
# Primary Read/Write location of container storage
|
# Primary Read/Write location of container storage
|
||||||
# When changing the graphroot location on an SELINUX system, you must
|
# When changing the graphroot location on an SELINUX system, you must
|
||||||
# ensure the labeling matches the default locations labels with the
|
# ensure the labeling matches the default locations labels with the
|
||||||
@ -59,7 +63,7 @@ additionalimagestores = [
|
|||||||
# can deduplicate pulling of content, disk storage of content and can allow the
|
# can deduplicate pulling of content, disk storage of content and can allow the
|
||||||
# kernel to use less memory when running containers.
|
# kernel to use less memory when running containers.
|
||||||
|
|
||||||
# containers/storage supports three keys
|
# containers/storage supports four keys
|
||||||
# * enable_partial_images="true" | "false"
|
# * enable_partial_images="true" | "false"
|
||||||
# Tells containers/storage to look for files previously pulled in storage
|
# Tells containers/storage to look for files previously pulled in storage
|
||||||
# rather then always pulling them from the container registry.
|
# rather then always pulling them from the container registry.
|
||||||
@ -70,29 +74,12 @@ additionalimagestores = [
|
|||||||
# Tells containers/storage where an ostree repository exists that might have
|
# Tells containers/storage where an ostree repository exists that might have
|
||||||
# previously pulled content which can be used when attempting to avoid
|
# previously pulled content which can be used when attempting to avoid
|
||||||
# pulling content from the container registry
|
# pulling content from the container registry
|
||||||
pull_options = {enable_partial_images = "false", use_hard_links = "false", ostree_repos=""}
|
# * convert_images = "false" | "true"
|
||||||
|
# If set to true, containers/storage will convert images to a
|
||||||
# Remap-UIDs/GIDs is the mapping from UIDs/GIDs as they should appear inside of
|
# format compatible with partial pulls in order to take advantage
|
||||||
# a container, to the UIDs/GIDs as they should appear outside of the container,
|
# of local deduplication and hard linking. It is an expensive
|
||||||
# and the length of the range of UIDs/GIDs. Additional mapped sets can be
|
# operation so it is not enabled by default.
|
||||||
# listed and will be heeded by libraries, but there are limits to the number of
|
pull_options = {enable_partial_images = "true", use_hard_links = "false", ostree_repos=""}
|
||||||
# mappings which the kernel will allow when you later attempt to run a
|
|
||||||
# container.
|
|
||||||
#
|
|
||||||
# remap-uids = "0:1668442479:65536"
|
|
||||||
# remap-gids = "0:1668442479:65536"
|
|
||||||
|
|
||||||
# Remap-User/Group is a user name which can be used to look up one or more UID/GID
|
|
||||||
# ranges in the /etc/subuid or /etc/subgid file. Mappings are set up starting
|
|
||||||
# with an in-container ID of 0 and then a host-level ID taken from the lowest
|
|
||||||
# range that matches the specified name, and using the length of that range.
|
|
||||||
# Additional ranges are then assigned, using the ranges which specify the
|
|
||||||
# lowest host-level IDs first, to the lowest not-yet-mapped in-container ID,
|
|
||||||
# until all of the entries have been used for maps. This setting overrides the
|
|
||||||
# Remap-UIDs/GIDs setting.
|
|
||||||
#
|
|
||||||
# remap-user = "containers"
|
|
||||||
# remap-group = "containers"
|
|
||||||
|
|
||||||
# Root-auto-userns-user is a user name which can be used to look up one or more UID/GID
|
# Root-auto-userns-user is a user name which can be used to look up one or more UID/GID
|
||||||
# ranges in the /etc/subuid and /etc/subgid file. These ranges will be partitioned
|
# ranges in the /etc/subuid and /etc/subgid file. These ranges will be partitioned
|
||||||
@ -130,6 +117,9 @@ mountopt = "nodev,metacopy=on"
|
|||||||
# Set to skip a PRIVATE bind mount on the storage home directory.
|
# Set to skip a PRIVATE bind mount on the storage home directory.
|
||||||
# skip_mount_home = "false"
|
# skip_mount_home = "false"
|
||||||
|
|
||||||
|
# Set to use composefs to mount data layers with overlay.
|
||||||
|
# use_composefs = "false"
|
||||||
|
|
||||||
# Size is used to set a maximum size of the container image.
|
# Size is used to set a maximum size of the container image.
|
||||||
# size = ""
|
# size = ""
|
||||||
|
|
||||||
@ -165,79 +155,3 @@ mountopt = "nodev,metacopy=on"
|
|||||||
# "force_mask" permissions.
|
# "force_mask" permissions.
|
||||||
#
|
#
|
||||||
# force_mask = ""
|
# force_mask = ""
|
||||||
|
|
||||||
[storage.options.thinpool]
|
|
||||||
# Storage Options for thinpool
|
|
||||||
|
|
||||||
# autoextend_percent determines the amount by which pool needs to be
|
|
||||||
# grown. This is specified in terms of % of pool size. So a value of 20 means
|
|
||||||
# that when threshold is hit, pool will be grown by 20% of existing
|
|
||||||
# pool size.
|
|
||||||
# autoextend_percent = "20"
|
|
||||||
|
|
||||||
# autoextend_threshold determines the pool extension threshold in terms
|
|
||||||
# of percentage of pool size. For example, if threshold is 60, that means when
|
|
||||||
# pool is 60% full, threshold has been hit.
|
|
||||||
# autoextend_threshold = "80"
|
|
||||||
|
|
||||||
# basesize specifies the size to use when creating the base device, which
|
|
||||||
# limits the size of images and containers.
|
|
||||||
# basesize = "10G"
|
|
||||||
|
|
||||||
# blocksize specifies a custom blocksize to use for the thin pool.
|
|
||||||
# blocksize="64k"
|
|
||||||
|
|
||||||
# directlvm_device specifies a custom block storage device to use for the
|
|
||||||
# thin pool. Required if you setup devicemapper.
|
|
||||||
# directlvm_device = ""
|
|
||||||
|
|
||||||
# directlvm_device_force wipes device even if device already has a filesystem.
|
|
||||||
# directlvm_device_force = "True"
|
|
||||||
|
|
||||||
# fs specifies the filesystem type to use for the base device.
|
|
||||||
# fs="xfs"
|
|
||||||
|
|
||||||
# log_level sets the log level of devicemapper.
|
|
||||||
# 0: LogLevelSuppress 0 (Default)
|
|
||||||
# 2: LogLevelFatal
|
|
||||||
# 3: LogLevelErr
|
|
||||||
# 4: LogLevelWarn
|
|
||||||
# 5: LogLevelNotice
|
|
||||||
# 6: LogLevelInfo
|
|
||||||
# 7: LogLevelDebug
|
|
||||||
# log_level = "7"
|
|
||||||
|
|
||||||
# min_free_space specifies the min free space percent in a thin pool require for
|
|
||||||
# new device creation to succeed. Valid values are from 0% - 99%.
|
|
||||||
# Value 0% disables
|
|
||||||
# min_free_space = "10%"
|
|
||||||
|
|
||||||
# mkfsarg specifies extra mkfs arguments to be used when creating the base
|
|
||||||
# device.
|
|
||||||
# mkfsarg = ""
|
|
||||||
|
|
||||||
# metadata_size is used to set the `pvcreate --metadatasize` options when
|
|
||||||
# creating thin devices. Default is 128k
|
|
||||||
# metadata_size = ""
|
|
||||||
|
|
||||||
# Size is used to set a maximum size of the container image.
|
|
||||||
# size = ""
|
|
||||||
|
|
||||||
# use_deferred_removal marks devicemapper block device for deferred removal.
|
|
||||||
# If the thinpool is in use when the driver attempts to remove it, the driver
|
|
||||||
# tells the kernel to remove it as soon as possible. Note this does not free
|
|
||||||
# up the disk space, use deferred deletion to fully remove the thinpool.
|
|
||||||
# use_deferred_removal = "True"
|
|
||||||
|
|
||||||
# use_deferred_deletion marks thinpool device for deferred deletion.
|
|
||||||
# If the device is busy when the driver attempts to delete it, the driver
|
|
||||||
# will attempt to delete device every 30 seconds until successful.
|
|
||||||
# If the program using the driver exits, the driver will continue attempting
|
|
||||||
# to cleanup the next time the driver is used. Deferred deletion permanently
|
|
||||||
# deletes the device and all data stored in device will be lost.
|
|
||||||
# use_deferred_deletion = "True"
|
|
||||||
|
|
||||||
# xfs_nospace_max_retries specifies the maximum number of retries XFS should
|
|
||||||
# attempt to complete IO when ENOSPC (no space) error is returned by
|
|
||||||
# underlying storage device.
|
|
||||||
# xfs_nospace_max_retries = "0"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user