From cc8a9949d6071495dd6642ee967ef13de4f4517f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 1 Oct 2024 14:04:36 -0400 Subject: [PATCH] docs/lbi: A few tweaks - Fix example to not duplicate `my-app` - Point to the podman discussion about `--userns=auto` instead. - Add a comparison table from https://github.com/containers/bootc/discussions/810 Signed-off-by: Colin Walters --- .../experimental-logically-bound-images.md | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/src/experimental-logically-bound-images.md b/docs/src/experimental-logically-bound-images.md index 2e2eee55d..7c39826f3 100644 --- a/docs/src/experimental-logically-bound-images.md +++ b/docs/src/experimental-logically-bound-images.md @@ -40,7 +40,7 @@ COPY ./my-app.image /usr/share/containers/systemd/my-app.image COPY ./another-app.container /usr/share/containers/systemd/another-app.container RUN ln -s /usr/share/containers/systemd/my-app.image /usr/lib/bootc/bound-images.d/my-app.image && \ - ln -s /usr/share/containers/systemd/my-app.image /usr/lib/bootc/bound-images.d/my-app.image + ln -s /usr/share/containers/systemd/another-app.container /usr/lib/bootc/bound-images.d/another-app.container ``` In the `.container` definition, you should use: @@ -76,6 +76,31 @@ invocation used by bootc. However, many properties used for container registry i can be configured via [containers-registries.conf](https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md) and apply to all commands operating on that image. +It is not currently supported in general to launch "rootless" containers from system-owned +image stores in general, whether from `/var/lib/containers` or the `/usr/lib/bootc/storage`. +There is no integration between bootc and "rootless" storage today, and none is planned. +Instead, it's recommended to ensure that your "system" or "rootful" containers drop +privileges. More in e.g. . + ### Distro/OS installer support At the current time, logically bound images are [not supported by Anaconda](https://github.com/rhinstaller/anaconda/discussions/5197). + +## Comparison with default podman systemd units + +In the comparison below, the term "floating" will be used for non-logically bound images. These images are often fetched by e.g. [podman-systemd](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html) and may be upgraded, added or removed independently of the host upgrade lifecycle. + +### Lifecycle + +- **Floating image:** The images are downloaded by the server the first time it starts (requiring networking typically). Commonly tools such as `podman auto-update` can be used to upgrade them independently of the host. +- **Logically bound image:** The images are referenced by the bootable container and are ensured to be available when the (bootc based) server starts. The image is always upgraded via `bootc upgrade` and appears read-only to other processes (e.g. `podman`). + +### Upgrades and garbage collection + +- **Floating image:** Managed by the user (`podman auto-update`, `podman image prune`). This can be triggered at anytime independent of the container image. +- **Logically bound image:** Managed exclusively by `bootc` during upgrades. + +### "rootless" container image + +- **Floating image:** Supported. +- **Logically bound image:** Not supported (`bootc` cannot be invoked as non-root). Instead, it's recommended to just drop most privileges for launched logically bound containers.