You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-1
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ A python-based alternative to [watchtower](https://github.com/v2tec/watchtower)
15
15
16
16
## Overview
17
17
18
-
Ouroboros will monitor all running docker containers or those you specify and update said containers to the latest available image in the remote registry using the `latest` tag with the same parameters that were used when the container was first created such as volume/bind mounts, docker network connections, environment variables, restart policies, entrypoints, commands, etc.
18
+
Ouroboros will monitor all running docker containers or those you specify and update said containers to the latest available image in the remote registry using the `latest` tag with the same parameters that were used when the container was first created such as volume/bind mounts, docker network connections, environment variables, restart policies, entrypoints, commands, etc. While ouroboros updates images to `latest` by default, that can be [overridden](#Options) to only monitor updates of a specific tag. Similar to [watchtower](https://github.com/v2tec/watchtower).
19
19
20
20
- Push your image to your registry and simply wait a couple of minutes for ouroboros to find the new image and redeploy your container autonomously.
21
21
- Limit your server ssh access
@@ -97,6 +97,9 @@ docker run --rm circa10a/ouroboros --help
97
97
- `--cleanup`, `-c` Remove the older docker image if a new one is found and updated.
98
98
- Default is `False`.
99
99
- Environment variable: `CLEANUP=true`
100
+
- `--keep-tag`, `-k` Only monitor if updates are made to the tag of the image that the container was created with instead of using `latest`.
101
+
- Default is `False`.
102
+
- Environment variable: `KEEPTAG=true`
100
103
101
104
### Private Registries
102
105
@@ -120,6 +123,16 @@ docker run -d --name ouroboros \
120
123
121
124
## Examples
122
125
126
+
### Monitor for updates for original tag
127
+
Instead of always updating to `latest` you can specify if you would like Ouroboros to only check for updates for your original container's image tag.
128
+
e.g. If your container was start with `nginx:1.14-alpine` using `--keep-tag` will poll the docker registry and compare digests. If there is a new image for `nginx:1.14-alpine`, ouroboros will update your container using the newly patched version.
129
+
> Default is `False`
130
+
```bash
131
+
docker run -d --name ouroboros \
132
+
-v /var/run/docker.sock:/var/run/docker.sock \
133
+
circa10a/ouroboros --keep-tag
134
+
```
135
+
123
136
### Update containers on a remote host
124
137
125
138
Ouroboros can monitor things other than just local, pass the `--url` argument to update a system with the Docker API exposed.
0 commit comments