From 46e94a5d8417c2c3656f61b8630f114bbe17d579 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Thu, 17 Apr 2025 21:43:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=89=93=E5=8D=B0=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=AF=B9=E6=8B=89=E5=8F=96?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=97=B6=E6=A0=87=E7=AD=BE=E7=9A=84=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync.py b/sync.py index 9d2a2fb..65ac29e 100644 --- a/sync.py +++ b/sync.py @@ -59,11 +59,11 @@ async def main(): tasks = [] for image in config.images: - print("Pimage:", image.source) if len(image.tags) > 0: for tag in image.tags: # 定义任务函数 async def task(): + print(f"Pulling image {image.source}:{tag}...") if r := await docker_pull(f"{image.source}:{tag}"): if r != 0: return r @@ -81,6 +81,7 @@ async def main(): tasks.append(limited_task(task)) else: async def task(): + print(f"Pulling image {image.source}...") if r := await docker_pull(image.source): if r != 0: return r