mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-27 16:27:39 +00:00
pull: get registries using the registries pkg
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
067ae31095
commit
06a5cc41bf
1 changed files with 1 additions and 7 deletions
|
|
@ -4,7 +4,6 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
cp "github.com/containers/image/copy"
|
||||
|
|
@ -277,12 +276,7 @@ func (i *Image) createNamesToPull() ([]*pullStruct, error) {
|
|||
pullNames = append(pullNames, &ps)
|
||||
|
||||
} else {
|
||||
registryConfigPath := ""
|
||||
envOverride := os.Getenv("REGISTRIES_CONFIG_PATH")
|
||||
if len(envOverride) > 0 {
|
||||
registryConfigPath = envOverride
|
||||
}
|
||||
searchRegistries, err := sysregistries.GetRegistries(&types.SystemContext{SystemRegistriesConfPath: registryConfigPath})
|
||||
searchRegistries, err := registries.GetRegistries()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue