Skip to content

Commit

Permalink
Merge pull request #1066 from cgwalters/lbi-not-global
Browse files Browse the repository at this point in the history
docs/lbi: Mention not to configure globally
  • Loading branch information
jeckersb authored Jan 31, 2025
2 parents acba25f + 3117c37 commit 29f9ecb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/src/logically-bound-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ In the `.container` definition, you should use:
GlobalArgs=--storage-opt=additionalimagestore=/usr/lib/bootc/storage
```

NOTE: Do *not* attempt to globally enable `/usr/lib/bootc/storage` in `/etc/containers/storage.conf`; only
use the bootc storage for logically bound images, not also floating images. For more, see below.

## Pull secret

Images are fetched using the global bootc pull secret by default (`/etc/ostree/auth.json`). It is not yet supported to configure `PullSecret` in these image definitions.
Expand Down Expand Up @@ -99,3 +102,14 @@ In the comparison below, the term "floating" will be used for non-logically boun

- **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.

## Avoid using /usr/lib/bootc/storage for floating images

Because images and in particular *layers* of images can be removed over time as
the OS upgrades, if you attempt to globally enable `/usr/lib/bootc/storage`
in the global `/etc/containers/storage.conf` that would also apply to "floating"
container images (i.e. the default `podman run` and other runtimes), it can
cause a bug where floating images can later fail if layers that were reused
in the LBI storage are removed. In the future, this restriction may be lifted,
but at the current time you can only configure this additional storage
for logically bound images.

0 comments on commit 29f9ecb

Please sign in to comment.