Re: [PATCH 1/2] scripts: add --registry option to container tool

From: Nathan Chancellor

Date: Wed Nov 04 2026 - 23:30:42 EST


> Add a --registry / -R command line argument to the container tool to
> specify an altnerative image registry and support it in the TOML
> configuration file accordingly.
>
> This uses a mechanism based on regular expressions to parse the
> container registry and image names and construct the final one based
> on a set of priority rules. A registry can be included directly in an
> image name; an empty string means a local image. It can then be
> overridden by explicitly specifying a registry name via the CLI option
> or the TOML file, with the CLI option taking precedence as always.
>
> Signed-off-by: Guillaume Tucker <gtucker@xxxxxxxxxx>

Hi Guillaume,

I don't have any real strong opinions on the patch itself (although
Sashiko seems to have its usual complaints about validation and such)
but I am not sure the commit message or documentation make it very clear
why it is useful to support this. In theory, the registry can be added
to the image parameter, is that not sufficient?

--
Cheers,
Nathan