diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-08-25 07:33:44 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-08-28 09:36:11 -0400 |
commit | 3c6603a2f88ab5ba38bf58334417aaa90c458c06 (patch) | |
tree | cc31266b9fadabd34b9bbe56ea5abc002f83fdee /libpod/image/docker_registry_options.go | |
parent | f49b98c61019ac04dccd6b3d5bc0c6af7857b17e (diff) | |
download | podman-3c6603a2f88ab5ba38bf58334417aaa90c458c06.tar.gz podman-3c6603a2f88ab5ba38bf58334417aaa90c458c06.tar.bz2 podman-3c6603a2f88ab5ba38bf58334417aaa90c458c06.zip |
Add support for variant when pulling images
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/image/docker_registry_options.go')
-rw-r--r-- | libpod/image/docker_registry_options.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/image/docker_registry_options.go b/libpod/image/docker_registry_options.go index c434f0259..257b7ae8d 100644 --- a/libpod/image/docker_registry_options.go +++ b/libpod/image/docker_registry_options.go @@ -30,6 +30,8 @@ type DockerRegistryOptions struct { OSChoice string // If not "", overrides the use of platform.GOARCH when choosing an image or verifying architecture match. ArchitectureChoice string + // If not "", overrides_VARIANT_ instead of the running architecture variant for choosing images. + VariantChoice string // RegistriesConfPath can be used to override the default path of registries.conf. RegistriesConfPath string } @@ -43,6 +45,7 @@ func (o DockerRegistryOptions) GetSystemContext(parent *types.SystemContext, add DockerArchiveAdditionalTags: additionalDockerArchiveTags, OSChoice: o.OSChoice, ArchitectureChoice: o.ArchitectureChoice, + VariantChoice: o.VariantChoice, BigFilesTemporaryDir: parse.GetTempDir(), } if parent != nil { |