From ab16ce3d98eaf3468f6c642a7a05e0390753a842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= <37316281+yanhao98@users.noreply.github.com> Date: Sat, 19 Oct 2024 19:46:07 +0800 Subject: [PATCH] WATCHTOWER_ARGS --schedule --- stacks/watchtower/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/stacks/watchtower/README.md b/stacks/watchtower/README.md index b047608..d275d4e 100644 --- a/stacks/watchtower/README.md +++ b/stacks/watchtower/README.md @@ -14,6 +14,7 @@ if [ "$RUN_ONCE" = true ]; then DOCKER_ARGS+=(--rm) else WATCHTOWER_ARGS+=(--label-enable) # 仅监控并更新标签为 com.centurylinklabs.watchtower.enable 设置为 true 的容器。 + WATCHTOWER_ARGS+=(--schedule "0 0 3 * * *") # 每天凌晨 3 点执行 DOCKER_ARGS+=(-d) DOCKER_ARGS+=(--restart unless-stopped) DOCKER_ARGS+=(--name watchtower)