mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
docs: document DOCKER_CONFIG environment variable (#602)
This commit is contained in:
parent
5020b03c64
commit
d0f3ea3683
1 changed files with 15 additions and 0 deletions
|
|
@ -69,6 +69,21 @@ watchtower:
|
|||
[...]
|
||||
```
|
||||
|
||||
#### Docker Config path
|
||||
By default, watchtower will look for the `config.json` file in `/`, but this can be changed by setting the `DOCKER_CONFIG` environment variable to the directory path where your config is located. This is useful for setups where the config.json file is changed while the watchtower instance is running, as the changes will not be picked up for a mounted file if the inode changes.
|
||||
Example usage:
|
||||
|
||||
```yaml
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
environment:
|
||||
DOCKER_CONFIG: /config
|
||||
volumes:
|
||||
- /etc/watchtower/config/:/config/
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
```
|
||||
|
||||
|
||||
## Credential helpers
|
||||
Some private Docker registries (the most prominent probably being AWS ECR) use non-standard ways of authentication.
|
||||
To be able to use this together with watchtower, we need to use a credential helper.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue