From d6e2254df508f392b4894b57ee37be6355767b56 Mon Sep 17 00:00:00 2001 From: Akbar Rifai Date: Sun, 24 Nov 2024 03:41:51 +0700 Subject: [PATCH] Fix raise when tag empty --- docker/utils/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/utils/build.py b/docker/utils/build.py index b84139104..44102946a 100644 --- a/docker/utils/build.py +++ b/docker/utils/build.py @@ -16,7 +16,7 @@ def match_tag(tag: str) -> bool: - return bool(_TAG.match(tag)) + return tag == '' or bool(_TAG.match(tag)) def tar(path, exclude=None, dockerfile=None, fileobj=None, gzip=False):