mirror of
https://github.com/containrrr/watchtower.git
synced 2026-02-21 22:54:07 +01:00
Consolidated all post-fork updates including dependency bumps and workflow changes
This commit is contained in:
parent
2abaa47fd3
commit
6b62d53797
100 changed files with 1503 additions and 1264 deletions
|
|
@ -1,4 +1,4 @@
|
|||
Watchtower is itself packaged as a Docker container so installation is as simple as pulling the `containrrr/watchtower` image. If you are using ARM based architecture, pull the appropriate `containrrr/watchtower:armhf-<tag>` image from the [containrrr Docker Hub](https://hub.docker.com/r/containrrr/watchtower/tags/).
|
||||
Watchtower is itself packaged as a Docker container so installation is as simple as pulling the `nickfedor/watchtower` image. If you are using ARM based architecture, pull the appropriate `nickfedor/watchtower:armhf-<tag>` image from the [containrrr Docker Hub](https://hub.docker.com/r/nickfedor/watchtower/tags/).
|
||||
|
||||
Since the watchtower code needs to interact with the Docker API in order to monitor the running containers, you need to mount _/var/run/docker.sock_ into the container with the `-v` flag when you run it.
|
||||
|
||||
|
|
@ -8,7 +8,7 @@ Run the `watchtower` container with the following command:
|
|||
docker run -d \
|
||||
--name watchtower \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
containrrr/watchtower
|
||||
nickfedor/watchtower
|
||||
```
|
||||
|
||||
If pulling images from private Docker registries, supply registry authentication credentials with the environment variables `REPO_USER` and `REPO_PASS`
|
||||
|
|
@ -22,7 +22,7 @@ docker run -d \
|
|||
-e REPO_USER=username \
|
||||
-e REPO_PASS=password \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
containrrr/watchtower container_to_watch --debug
|
||||
nickfedor/watchtower container_to_watch --debug
|
||||
```
|
||||
|
||||
Also check out [this Stack Overflow answer](https://stackoverflow.com/a/30494145/7872793) for more options on how to pass environment variables.
|
||||
|
|
@ -34,7 +34,7 @@ docker run -d \
|
|||
--name watchtower \
|
||||
-v $HOME/.docker/config.json:/config.json \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
containrrr/watchtower container_to_watch --debug
|
||||
nickfedor/watchtower container_to_watch --debug
|
||||
```
|
||||
|
||||
!!! note "Changes to config.json while running"
|
||||
|
|
@ -42,7 +42,7 @@ docker run -d \
|
|||
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.
|
||||
**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!).
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ services:
|
|||
- "443:3443"
|
||||
- "80:3080"
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
image: nickfedor/watchtower
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /root/.docker/config.json:/config.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue