From 45168e8515cfe87740d219b822131618e58dea70 Mon Sep 17 00:00:00 2001 From: Reinout van Rees Date: Tue, 23 Mar 2021 16:56:12 +0100 Subject: [PATCH] Doc fix: default interval is 24h instead of 5m (#856) Probably due to the docker hub rate limiting, the default interval was changed from 5 minutes to 24 hours. It is mentioned in the documentation for `--interval`, but not yet here :-) --- docs/usage-overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage-overview.md b/docs/usage-overview.md index b5737c3..04178a4 100644 --- a/docs/usage-overview.md +++ b/docs/usage-overview.md @@ -39,7 +39,7 @@ docker run -d \ > NOTE: if you mount `config.json` in the manner above, changes from the host system will (generally) not be propagated to the running container. Mounting files into the Docker daemon uses bind mounts, which are based on inodes. Most applications (including `docker login` and `vim`) will not directly edit the file, but instead make a copy and replace the original file, which results in a new inode which in turn *breaks* the bind mount. **As a workaround**, you can create a symlink to your `config.json` file and then mount the symlink in the container. The symlinked file will always have the same inode, which keeps the bind mount intact and will ensure changes to the original file are propagated to the running container (regardless of the inode of the source file!). -If you mount the config file as described above, be sure to also prepend the URL for the registry when starting up your watched image (you can omit the https://). Here is a complete docker-compose.yml file that starts up a docker container from a private repo at Docker Hub and monitors it with watchtower. Note the command argument changing the interval to 30s rather than the default 5 minutes. +If you mount the config file as described above, be sure to also prepend the URL for the registry when starting up your watched image (you can omit the https://). Here is a complete docker-compose.yml file that starts up a docker container from a private repo at Docker Hub and monitors it with watchtower. Note the command argument changing the interval to 30s rather than the default 24 hours. ```yaml version: "3" @@ -55,4 +55,4 @@ services: - /var/run/docker.sock:/var/run/docker.sock - /root/.docker/config.json:/config.json command: --interval 30 -``` \ No newline at end of file +```