Fixed CreateImageFromImage not respecting supplied Tag parameter

Signed-off-by: Andreas Schubert <schubter@gmail.com>
This commit is contained in:
Andreas Schubert committed 2020-02-19 10:36:44 +01:00
1 parent 1bed53b02c
commit 6e5cf818e9
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}