From 00e0f6415b3a779392e7531b1dcbeb8e5a77e757 Mon Sep 17 00:00:00 2001 From: francesco Date: Mon, 24 May 2021 15:43:56 +0200 Subject: [PATCH] Watchtower --run-once --- docs/cd.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/cd.md b/docs/cd.md index 7137154..d13fa2c 100644 --- a/docs/cd.md +++ b/docs/cd.md @@ -1 +1,9 @@ -# Continuous delivery \ No newline at end of file +# Continuous delivery + +## Watchtower + +### Force Watchtower to update watching container +If pushed Code has to be deployed immediately, the Watchtower docker run param `--run-once` can be added. +```bash +sudo docker run --rm --env-file /volume2/homes/francesco/Drive/docker/watchtower/watchtower.env -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once mkdocs www +``` \ No newline at end of file