From 76e2a0c5d3365205cb104280d41015d6ab25cd9a Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Tue, 4 Feb 2020 12:48:13 +0100 Subject: 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 --- cmd/podman/pull.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') 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") { -- cgit v1.2.3-54-g00ecf