summaryrefslogtreecommitdiff
path: root/cmd/podman/pull.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-02-04 12:48:13 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-02-10 12:36:45 +0100
commit76e2a0c5d3365205cb104280d41015d6ab25cd9a (patch)
treecaaa958c7b9c09f283e7e4498fdd8c473403f32e /cmd/podman/pull.go
parentee811431d29962c3a801903ca3ca342a2000f65e (diff)
downloadpodman-76e2a0c5d3365205cb104280d41015d6ab25cd9a.tar.gz
podman-76e2a0c5d3365205cb104280d41015d6ab25cd9a.tar.bz2
podman-76e2a0c5d3365205cb104280d41015d6ab25cd9a.zip
v2 api: /libpod/images/pull
Implement the /libpod/images/pull endpoint and correct the swagger docs. The reference parameter is mandatory and must either be a c/image/docker/reference or a reference to the "docker://" transport as the pull endpoint is meant to only support pulling images from a registry. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd/podman/pull.go')
-rw-r--r--cmd/podman/pull.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/pull.go b/cmd/podman/pull.go
index 1cbb3f45e..b5957d7fe 100644
--- a/cmd/podman/pull.go
+++ b/cmd/podman/pull.go
@@ -101,6 +101,7 @@ func pullCmd(c *cliconfig.PullValues) (retError error) {
}
}
+ // FIXME: that's a bug. What if we pass "localhost:5000/no-tag" ?
arr := strings.SplitN(args[0], ":", 2)
if len(arr) == 2 {
if c.Bool("all-tags") {