mirror of
https://github.com/containers/podman.git
synced 2025-06-17 15:08:08 +08:00
remote-client support for images
Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -76,7 +76,7 @@ func (ir *Runtime) getPullRefPair(srcRef types.ImageReference, destName string)
|
||||
decomposedDest, err := decompose(destName)
|
||||
if err == nil && !decomposedDest.hasRegistry {
|
||||
// If the image doesn't have a registry, set it as the default repo
|
||||
decomposedDest.registry = DefaultLocalRegistry
|
||||
decomposedDest.Registry = DefaultLocalRegistry
|
||||
decomposedDest.hasRegistry = true
|
||||
destName = decomposedDest.assemble()
|
||||
}
|
||||
@ -317,7 +317,7 @@ func (ir *Runtime) pullGoalFromPossiblyUnqualifiedName(inputName string) (*pullG
|
||||
}
|
||||
var refPairs []pullRefPair
|
||||
for _, registry := range searchRegistries {
|
||||
decomposedImage.registry = registry
|
||||
decomposedImage.Registry = registry
|
||||
imageName := decomposedImage.assembleWithTransport()
|
||||
if hasShaInInputName(inputName) {
|
||||
imageName = fmt.Sprintf("%s%s/%s", decomposedImage.transport, registry, inputName)
|
||||
|
Reference in New Issue
Block a user