From 945c035391e4d129c99d770cb96809b7ab0987f0 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 13:36:15 +0800 Subject: [PATCH] watchtower --- stacks/watchtower/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/stacks/watchtower/README.md b/stacks/watchtower/README.md index 7724a28..b047608 100644 --- a/stacks/watchtower/README.md +++ b/stacks/watchtower/README.md @@ -13,6 +13,7 @@ if [ "$RUN_ONCE" = true ]; then WATCHTOWER_ARGS+=(--run-once) DOCKER_ARGS+=(--rm) else + WATCHTOWER_ARGS+=(--label-enable) # 仅监控并更新标签为 com.centurylinklabs.watchtower.enable 设置为 true 的容器。 DOCKER_ARGS+=(-d) DOCKER_ARGS+=(--restart unless-stopped) DOCKER_ARGS+=(--name watchtower)