From b7feddc14708f2950c94f383d6250cbd8c118723 Mon Sep 17 00:00:00 2001 From: Robin Rolf Date: Thu, 3 Aug 2023 23:56:37 +0200 Subject: [PATCH] Extra docker container params watchtower: `--include-restarting` also update if the container is in a crash loop due to a bad build or the like grab container: `--log-driver json-file --log-opt max-size=50m` to limit logs, docker defaults to json-file with no limit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34447b9..3fd790c 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,11 @@ Alternatively, more advanced users can also run projects using Docker. While use It is advised to use [Watchtower](https://github.com/containrrr/watchtower) to automatically update the project container: - docker run -d --name watchtower --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --label-enable --cleanup --interval 3600 + docker run -d --name watchtower --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --label-enable --cleanup --interval 3600 --include-restarting after which the project container can be run: - docker run -d --name archiveteam --label=com.centurylinklabs.watchtower.enable=true --restart=unless-stopped atdr.meo.ws/archiveteam/reddit-grab --concurrent 1 YOURNICKHERE + docker run -d --name archiveteam --label=com.centurylinklabs.watchtower.enable=true --log-driver json-file --log-opt max-size=50m --restart=unless-stopped atdr.meo.ws/archiveteam/reddit-grab --concurrent 1 YOURNICKHERE Be sure to replace `YOURNICKHERE` with the nickname that you want to be shown as on the tracker. There is no registration, just pick a nickname you like.