lxc: simplify to a single find_image(aliases) method

Replace the two-function find_relay_image / _find_relay_image pair
with Incus.find_image(aliases), which returns the first alias
that exists in the local image store, or None.

Container.launch() passes [RELAY_IMAGE_ALIAS, BASE_IMAGE_ALIAS]
and ensure_base_image() passes [BASE_IMAGE_ALIAS].
This commit is contained in:
holger krekel
2026-03-08 18:08:05 +01:00
parent ee9d54f7d6
commit e2ec0cf2c5
3 changed files with 19 additions and 23 deletions

View File

@@ -228,7 +228,6 @@ The Incus image store retains the following snapshot images:
cached after the first successful ``cmdeploy run``.
Subsequent relay containers launch from this image
so the deploy step is mostly no-ops (roughly 3× faster than a fresh deploy).
Relay containers are limited to **500 MiB RAM** and the DNS container to **100 MiB**.
.. _lxc-tls: