darknode
7f6d4db0b7
Refactor pre/post update commands
2018-11-05 20:49:15 +01:00
Alexandre Menif
78a375f86e
Use simple string instead of JSON string for pre/post update commands.
2018-06-18 19:37:32 +02:00
Alexandre Menif
60d47a5749
Implement pre and post-update command execution.
2018-05-27 20:59:53 +02:00
Fabrizio Steiner
d0ac9f14ab
some linting
2018-03-03 21:58:08 +01:00
Fabrizio Steiner
026a04b59b
implemented enableLabel by a Filter
2018-03-03 21:58:07 +01:00
ubergesundheit
d989254b1a
change upper case S in sirupsen to lower case to avoid build error
2018-03-02 14:00:14 +01:00
Kaleb Elwert
de2ac9341d
Add a method of enabling or disabling containers using labels
...
Switch command line flag from no-enable to label-enable and simplify logic
Add basic documentation for the --label-enable flag
2017-11-27 12:42:22 +01:00
Fabrizio Steiner
52e73d7a8a
Do not initiate a RemoveContainer for containers which have AutoRemove (--rm) active.
...
fixes GH-71
2017-04-12 08:41:36 +02:00
Robotex
f8a05cb8ab
Added host network check
2017-03-24 22:58:00 +01:00
Tanguy ⧓ Herrmann
a5c3e1e05a
Make the algorithm follow docker-compose more precisely
...
https://github.com/v2tec/watchtower/pull/40#discussion_r97719974
2017-01-31 11:00:22 +01:00
Fabrizio Steiner
db473821f6
Merge branch 'master' into net
2017-01-24 21:24:40 +01:00
Fabrizio Steiner
eda5391d0a
go fmt...
2017-01-24 21:06:04 +01:00
Fabrizio Steiner
edfad5b786
RenameContainer implemented, this fixes the problem that watchtower can't update itself.
2017-01-07 01:00:49 +01:00
Tanguy ⧓ Herrmann
b45fc5a9ba
Fix comment from HoundCI
...
https://github.com/CenturyLinkLabs/watchtower/pull/40#discussion_r94326156
2017-01-02 16:19:51 +01:00
Tanguy ⧓ Herrmann
4909b90662
go fmt done!
2016-12-17 22:56:04 +01:00
Tanguy ⧓ Herrmann
f8a2f80b92
Make an updated container connects to all the previously connected net
...
With insights from https://github.com/docker/docker/issues/29265
the behaviour is the same as the one from docker-compose
* connect to 1 network (at random) at start
* disconnect from that network
* reconnect to all the network from the previous configuration
2016-12-17 22:52:54 +01:00
Tanguy ⧓ Herrmann
fe0e34e857
Reuse the network config for the relaunch
2016-12-17 22:50:36 +01:00
Ross Cadogan
dad5d58339
Support loading authentication credentials from Docker config file
2016-11-08 12:15:17 +00:00
Ross Cadogan
541264281c
Cannot load host Docker config from container. Remove option and rely on environment variables
2016-10-18 14:51:44 +01:00
Ross Cadogan
1c59200565
Registry authentication was failing silently when pulling images.
...
Load authentication credentials for available credential stores in order of preference:
1. Environment variables REPO_USER, REPO_PASS
2. Docker config files
Request image pull with authentication header.
Wait until pull request is complete before exiting function.
2016-10-18 14:04:55 +01:00
Ross Cadogan
ef430b791a
Add auth config, registry auth fails silently without
2016-10-18 10:04:26 +01:00
Ross Cadogan
42fea79860
Rework TLS support, remove unsupported options
2016-10-14 12:10:49 +01:00
Ross Cadogan
b13e6af70f
Migrate from codegangsta lib to urfave
2016-10-13 22:57:08 +01:00
Ross Cadogan
99ed959155
Port client lib from samalba/dockerclient to docker/docker/client
2016-10-13 21:34:24 +01:00
Ross Cadogan
02bca8d6a4
Improve error reporting
2016-10-13 18:15:18 +01:00
Erin Corson
d36899dd7c
parameterize repo auth
2016-02-23 19:40:35 -07:00
Erin Corson
337db1d458
merge resolution
2016-02-23 18:35:14 -07:00
Erin Corson
f5801669ab
updates
2016-02-23 18:33:29 -07:00
Erin Corson
b1e70f494e
will not compile without these updates due to change in docker lib
2016-02-23 14:03:28 -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