Open mhutter opened 10 months ago
I'd be willing to provide a PR that fixes/improves this.
I see 2 possible solution approaches:
registriesConf.settings
, convert the existing options into the structure needed, and merge everything togetherregistries.<prefix>.*
with options that map to configuration parameters available (insecure
, blocked
, location
, ...)@mhutter thank you for considering to work on this! I'd say we convert the existing options.
Describe the bug
The
virtualisation.containers
module; specifically theregistries
bits generate the deprecated Version 1 Format of/etc/containers/registries.conf
: https://github.com/containers/image/blob/f87d1edcbc2555ee59ac3ebf3f61feddba22b457/docs/containers-registries.conf.5.mdSteps To Reproduce
-
Expected behavior
/etc/containers/registries.conf
is createdvirtualisation.containers.registries
Screenshots
-
Additional context
This poses a problem since v1 only allows a subset of the configuration options v2 does; specifically the configuration of registry mirrors is not possible with this approach.
Notify maintainers
(via teams/podman) @saschagrunert @vdemeester
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.