diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2019-02-05 10:34:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-05 10:34:40 -0500 |
commit | 3554bfce98bc643bd4724340bf2abbaa6373e70c (patch) | |
tree | fb95023c6bb2619114f48d258e36e9486187b6b3 /libpod/adapter/runtime_remote.go | |
parent | f30a531de11495dc82015b505dd401aceed8c2ba (diff) | |
parent | 735f0de6336fa8db7465ce4aaa5b6de203816aa9 (diff) | |
download | podman-3554bfce98bc643bd4724340bf2abbaa6373e70c.tar.gz podman-3554bfce98bc643bd4724340bf2abbaa6373e70c.tar.bz2 podman-3554bfce98bc643bd4724340bf2abbaa6373e70c.zip |
Merge pull request #2196 from baude/toolbox
Changes to container runlabel for toolbox project
Diffstat (limited to 'libpod/adapter/runtime_remote.go')
-rw-r--r-- | libpod/adapter/runtime_remote.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libpod/adapter/runtime_remote.go b/libpod/adapter/runtime_remote.go index f184ce0a9..0633c036d 100644 --- a/libpod/adapter/runtime_remote.go +++ b/libpod/adapter/runtime_remote.go @@ -6,6 +6,7 @@ import ( "context" "encoding/json" "fmt" + "github.com/pkg/errors" "io" "strings" "time" @@ -156,7 +157,10 @@ func (r *LocalRuntime) LoadFromArchiveReference(ctx context.Context, srcRef type } // New calls into local storage to look for an image in local storage or to pull it -func (r *LocalRuntime) New(ctx context.Context, name, signaturePolicyPath, authfile string, writer io.Writer, dockeroptions *image.DockerRegistryOptions, signingoptions image.SigningOptions, forcePull bool) (*ContainerImage, error) { +func (r *LocalRuntime) New(ctx context.Context, name, signaturePolicyPath, authfile string, writer io.Writer, dockeroptions *image.DockerRegistryOptions, signingoptions image.SigningOptions, forcePull bool, label *string) (*ContainerImage, error) { + if label != nil { + return nil, errors.New("the remote client function does not support checking a remote image for a label") + } // TODO Creds needs to be figured out here too, like above tlsBool := dockeroptions.DockerInsecureSkipTLSVerify // Remember SkipTlsVerify is the opposite of tlsverify |