From 6e5cf818e9dcd3c58e67fd636cd5cd0a8cbfbf40 Mon Sep 17 00:00:00 2001 From: Andreas Schubert Date: Wed, 19 Feb 2020 10:36:44 +0100 Subject: Fixed CreateImageFromImage not respecting supplied Tag parameter Signed-off-by: Andreas Schubert --- pkg/api/handlers/generic/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/handlers/generic/images.go b/pkg/api/handlers/generic/images.go index afd107207..1ced499d9 100644 --- a/pkg/api/handlers/generic/images.go +++ b/pkg/api/handlers/generic/images.go @@ -255,7 +255,7 @@ func CreateImageFromImage(w http.ResponseWriter, r *http.Request) { tag – Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled. */ fromImage := query.FromImage - if len(query.Tag) < 1 { + if len(query.Tag) >= 1 { fromImage = fmt.Sprintf("%s:%s", fromImage, query.Tag) } -- cgit v1.2.3-54-g00ecf