1
0
mirror of https://github.com/containrrr/watchtower.git synced 2024-12-15 09:14:13 +02:00
Commit Graph

15 Commits

Author SHA1 Message Date
Erin Corson
f5801669ab updates 2016-02-23 18:33:29 -07:00
Brian DeHamer
b0910ee20b Add support for whitelist of monitored containers 2015-08-04 17:07:27 +00:00
Brian DeHamer
d6321bf8dc Add godoc comments 2015-07-31 22:36:18 +00:00
Brian DeHamer
058d6e5507 Turn DockerClient into dockerClient
No need to export this particular struct since we already have a public
Client interface available and a NewClient function which can be used to
instantiate the concrete struct.
2015-07-31 22:04:56 +00:00
Brian DeHamer
dd80aa4a0d Support for --cleanup flag
The --cleanup flag will cause watchtower to automatically remove the old
image after a container is restart with a new image.
2015-07-31 18:24:27 +00:00
Brian DeHamer
812fb60805 Handle errors without halting
If we receive an error while trying to shutdown/startup a particular
container we don't want to immediately terminate the current update
cycle. Instead we should continue processing the remaining containers
and simply log the error.
2015-07-29 20:03:47 +00:00
Brian DeHamer
e21c21ec3b Account for latency in container removal
Under certain conditions when watchtower is monitoring a Docker Swarm
cluster there would be cases where an updated container could not be
started because the old hadn't yet been removed (name conflicts, mapped
port conflicts, etc). We suspect that this has something to do with the
async nature of swarm and even though we've asked the swarm master to
remove a container it may not be completely removed from the associated
node. The fix is to do some polling after the remove container call to
ensure that the container is truly gone before proceeding.
2015-07-28 19:29:20 +00:00
Brian DeHamer
e06c46552a Support TLS connections to remote daemons 2015-07-27 17:10:12 +00:00
Brian DeHamer
4275d1cd3d Add more accessors to Container struct 2015-07-22 22:52:22 +00:00
Brian DeHamer
bfed95ecaf Support --debug flag
Also adds better logging output
2015-07-22 21:58:16 +00:00
Brian DeHamer
3d0c853e42 Add --no-pull support 2015-07-21 23:29:00 +00:00
Brian DeHamer
a8dec129f5 Refactor Client interface 2015-07-21 22:41:58 +00:00
Brian DeHamer
cc1efc20e2 Go-lint clean-up 2015-07-21 21:40:22 +00:00
Brian DeHamer
4ba21639a0 Allow user-configurable DOCKER_HOST 2015-07-21 19:37:18 +00:00
Brian DeHamer
00f2875abf Refactoring & renaming 2015-07-21 16:58:31 +00:00