11 Commits

Author SHA1 Message Date
Tayyeb
3174bec379 change default to ignore *-datavolume containers in janitor:docker-cleanup 2017-07-30 09:14:15 +04:30
Raul Sanchez
ccec08fd26 Feat: Janitor add debug and loop options 2017-07-10 13:35:19 +02:00
Marc Fournier
0d318696f8 upgrade janitor to latest image version, docker 1.9+ support (#154)
* Janitor: new docker-cleanup image version

The initial motivation for this version bump is support for docker 1.9+
Currently volumes don't get removed properly and lead to containers to
stall at start up, which is a pain to diagnose in rancher.

ref: https://github.com/meltwater/docker-cleanup/issues/24

* janitor: add support for KEEP_CONTAINERS_NAMED feature

* janitor: document '**None**' and '**All**'

* janitor: run with privileged mode unconditionnally

According to @sshipway, it seemed to be incompatible with a lot of
docker/rancher versions.

* janitor: bump docker-cleanup image version to 1.8.0
2016-09-22 13:33:54 -07:00
Steve Shipway
d7e06867f8 Remove option to set Privileged mode, as this cannot be parameterised in the docker-compose YAML (#162) 2016-06-01 11:20:19 -07:00
steigr
8f8fee8e59 Janitor needs neither privileged mode nor network access. (#100)
* Janitor doen't need privileged mode nor networking

- remove "privileged: true" property
- add "net: none" property

The cleanup tasks runs entirely without networking on /var/run/docker.sock. The calling process can access the docker so it does not need to have privileged mode.

Signed-off-by: Mathias Kaufmann <me@stei.gr>

* Added boolean question for privileged mode.

Signed-off-by: Mathias Kaufmann <me@stei.gr>
2016-05-15 21:02:53 -07:00
sshipway
5d12e5ebdd Add updated Janitor template using official meltwater/docker-cleanup
container image rather than the temporary patched version
Some fixes to the README documentation to help clarify behaviour and fix
typos.
2016-03-29 21:21:13 +00:00
James Oliver
bc26eb978e Add template validation, fix categories 2016-03-28 22:09:56 -07:00
sshipway
4e88b991ae Add documentation for Janitor 2016-03-13 23:55:20 +00:00
sshipway
0c20789ec6 Updated Janitor with KEEP_CONTAINERS and wildcard matches
Default setting to keep ALL containers protects Rancher templates where
run-once containers are used; in general Rancher will remove its own
containers where necessary.
User of Shell Wildcards allows more flexibility when specifying images to be
kept during the sweep.
2016-03-13 23:47:26 +00:00
sshipway
49f47f67cd More text 2016-03-04 02:06:56 +00:00
Steve Shipway
aa7337cfeb Add Janitor container definition 2016-03-04 01:45:37 +00:00