summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-14 13:39:09 -0800
committerGitHub <noreply@github.com>2019-01-14 13:39:09 -0800
commit6301f6a0a9e3989ecdf59fd5395d06c44f8bac14 (patch)
treea9aac949e6b94cd46557fa82f29ca30aa7bdedff /cmd
parent30f115a96034275fc7136b1ec576d57ec2cf099e (diff)
parentb30a56c15613428c80033b97e81db7d3d8ed84e6 (diff)
downloadpodman-6301f6a0a9e3989ecdf59fd5395d06c44f8bac14.tar.gz
podman-6301f6a0a9e3989ecdf59fd5395d06c44f8bac14.tar.bz2
podman-6301f6a0a9e3989ecdf59fd5395d06c44f8bac14.zip
Merge pull request #2155 from baude/remotetestenable
Run integrations test with remote-client
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/pull.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go
index 47130805e..78b28e36e 100644
--- a/cmd/podman/pull.go
+++ b/cmd/podman/pull.go
@@ -2,6 +2,7 @@ package main
import (
"fmt"
+ "github.com/containers/libpod/libpod/adapter"
"io"
"os"
"strings"
@@ -9,7 +10,6 @@ import (
dockerarchive "github.com/containers/image/docker/archive"
"github.com/containers/image/transports/alltransports"
"github.com/containers/image/types"
- "github.com/containers/libpod/cmd/podman/libpodruntime"
image2 "github.com/containers/libpod/libpod/image"
"github.com/containers/libpod/pkg/util"
"github.com/pkg/errors"
@@ -64,11 +64,11 @@ specified, the image with the 'latest' tag (if it exists) is pulled
// pullCmd gets the data from the command line and calls pullImage
// to copy an image from a registry to a local machine
func pullCmd(c *cli.Context) error {
- runtime, err := libpodruntime.GetRuntime(c)
+ localRuntime, err := adapter.GetRuntime(c)
if err != nil {
return errors.Wrapf(err, "could not get runtime")
}
- defer runtime.Shutdown(false)
+ defer localRuntime.Runtime.Shutdown(false)
args := c.Args()
if len(args) == 0 {
@@ -116,14 +116,14 @@ func pullCmd(c *cli.Context) error {
if err != nil {
return errors.Wrapf(err, "error parsing %q", image)
}
- newImage, err := runtime.ImageRuntime().LoadFromArchiveReference(getContext(), srcRef, c.String("signature-policy"), writer)
+ newImage, err := localRuntime.LoadFromArchiveReference(getContext(), srcRef, c.String("signature-policy"), writer)
if err != nil {
return errors.Wrapf(err, "error pulling image from %q", image)
}
imgID = newImage[0].ID()
} else {
authfile := getAuthFile(c.String("authfile"))
- newImage, err := runtime.ImageRuntime().New(getContext(), image, c.String("signature-policy"), authfile, writer, &dockerRegistryOptions, image2.SigningOptions{}, true)
+ newImage, err := localRuntime.New(getContext(), image, c.String("signature-policy"), authfile, writer, &dockerRegistryOptions, image2.SigningOptions{}, true)
if err != nil {
return errors.Wrapf(err, "error pulling image %q", image)
}