51 Commits
Author SHA1 Message Date
David Xia 6a5734c6f0 Update README with mature status 2019-08-05 14:58:57 -04:00
David Xia d1d11ee8af Update README with inactive status 2019-06-30 13:37:01 -04:00
Max Jonas Werner a31c771ae9 Add build status badge to README 2019-04-16 11:05:15 +02:00
David Xia b26949707b Merge branch 'master' into issue168 2018-11-15 20:47:32 -05:00
Patrick Decat 7acb5dc356 Update README to match currently used docker version
The docker version used to build the image is no longer 1.12.4 but 17.09.0-ce since https://github.com/spotify/docker-gc/commit/0b367a428b3f97c42404489570a796c0f84ddd4f
2018-11-02 12:15:38 +01:00
Jonathan Lassoff 26a76eba70 Fix small typo.
s/should container/should contain/
2018-08-09 10:34:59 +00:00
David Xia c5a3ad4317 Merge pull request #187 from csgillespie/patch-1
Add sudo where necessary
2018-05-22 23:52:45 -04:00
Riccardo Piccoli 7ce3b44ae6 Add volumes cleanup (#142)
* bump docker version and fix binary mv
* add volume cleanup
* mention volumes in readme
* keep docker-gc backward-compatibility
* improve remove volumes logic
* this would probably be a feature
* change back to original docker version
* exclude volumes removal
* add VOLUME_DELETE_ONLY_DRIVER
* fix typos (#6)
* exclude volumes file defaults to null (#7)
* it should be local, not locale (#8)
* Add dangling images to list of all images. (#9)
2018-05-22 21:05:24 -04:00
Colin Gillespie e661b32439 Add sudo where necessary
* apt-get and dpkg both require sudo powers
 * Removing `$` so copy and paste now works
2018-03-21 09:40:29 +00:00
Patrick Decat b28eb54cd6 Update README to match currently used docker version
The docker version used to build the image is no longer 1.6.2 but 1.12.4 since https://github.com/spotify/docker-gc/commit/0b367a428b3f97c42404489570a796c0f84ddd4f
2017-08-18 15:49:52 +02:00
Nick Platt acbcd1bb4f Minor edits to README 2017-08-01 11:40:03 -04:00
Yong Wen Chua 5ae806fffd Add information about running docker-gc container with user namespace
Otherwise, the container will fail to run with the error
Get http:///var/run/docker.sock/v1.18/version: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?
2017-08-01 11:14:01 -04:00
Thomas Darimont 75c3c0a7f4 Refer to correct version in Readme.md
Current version is `docker-gc_0.1.0_all.deb readme mentioned `docker-gc_0.0.4_all.deb`.
2017-08-01 09:46:17 -04:00
Marek Novotný 7f389ff258 Issue 168: fixing README.md Docker-GC running in docker 2017-07-03 14:39:08 +02:00
mnussbaum 75b93c1732 Allow most recent n images to be preserved for a repo.
This allows MINIMUM_IMAGES_TO_SAVE=1 to be set to save the most recent
image for a repository. Any number of images can be saved, e.g. you can
save the most recent 10 images with MINIMUM_IMAGES_TO_SAVE=10.

By default MINIMUM_IMAGES_TO_SAVE is set to 0, which keeps the behavior
of docker-gc the same as before this commit.
2017-05-03 00:09:08 +00:00
Simone Esposito 872491df18 README: Mount /etc read only on the example command (#155) 2017-01-17 10:07:02 -05:00
Francis De Brabandere 63cdfe7029 Update cron.hourly documentation
I followed the previous documentation and created a `/etc/cron.hourly/docker-gc.sh` which was not actually run because it has the `.sh` extension. To make sure other users don't make the same mistake I explicitly mentioned `/etc/cron.hourly/docker-gc` and added a command to validate that the job will run.
2016-11-09 17:06:01 +01:00
WangXing 172912c24d Add dh-make to dependencies 2016-06-24 10:18:05 +08:00
Adam Brady 66a00013d0 Make it clear that the docker image is published 2016-06-20 12:29:16 +10:00
Chase Sillevis 0eb5d79abc Replace example grep pattern by a working pattern
It looks like an alpine kind of thing, I tested the code on a few different places (Mac, Debian) where it worked as you'd expect. However, when using Alpine Linux, `[^ ]\+` did not return any IDs and cleaned up images I didn't want it to clean up.
2016-05-31 17:16:48 -07:00
Lior Goikhburg a3b2d2aa11 Add DRY_RUN option
fix wrong logger, wrong message and wrong image list file
2016-03-04 18:26:01 +03:00
Antoine Duprat 6bcd887b03 Fix a typo in the documentation 2016-03-03 10:56:32 +01:00
Clayton O'Neill 3c4cecef4e Add flag to allow forcing container removal
This adds another environment variable flag to allow passing in -f to
the docker rm command when removing the container.  If you're running
into issues with getting errors on removing containers, this ensures
they still get cleaned up.
2016-01-09 18:41:56 +00:00
Israel Derdik 2772871697 Grammar fix 2016-01-05 11:56:59 -05:00
Israel Derdik ef9cc9e2fa Added GRACE_PERIOD_SECONDS documentation 2016-01-05 11:54:05 -05:00
Matthew Buckett ee28e8992e To build the package build-essential is required
When building on Ubuntu Trusty box I also needed to install build-essential, otherwise I got the error:

    dpkg-checkbuilddeps: Unmet build dependencies: build-essential:native
2015-12-22 09:58:18 +00:00
David Goodlad 062705532d Docs: Add example exclude entry matching all tags
There was no example of the match pattern used other than "patterns (in the `grep sense)", which tripped me up as I was using unescaped `+` in my patterns which didn't match anything. An example here should help avoid others' confusion 😄
2015-12-02 08:39:25 +11:00
Arni Birgisson fe9c6578fe add readme section about force option of docker rmi 2015-12-01 20:04:46 +00:00
Matt Brown 783e76cf76 rename Makefile to not interfere with dh_build stuff
db_auto_build is invoking `make` since we have a `Makefile` in the
project root.

Since we don't need this to be invoked when building the Debian package
at all, just move the Makefile to a different name (and update docs) to
avoid having to reconfigure the debuild build.
2015-11-17 14:51:40 -05:00
Matt Brown 2db4b26e7d Merge pull request #65 from mattnworb/docker-tag
add Makefile for building and pushing image
2015-11-04 16:57:35 -05:00
Matt Brown 86874c29aa add makefile for building and pushing image
Closes #37.
2015-11-04 16:40:41 -05:00
Matt Brown e8b09816f1 document building image with other Docker versions
Resolves #54
2015-11-04 15:20:25 -05:00
Matt Brown 95d8644686 Merge pull request #53 from tedyoung/master
Removed reference to cron file (issue #48) and other cleanup/tidying.
2015-11-04 14:23:35 -05:00
Matt Brown a93d1c5580 fix link in readme's table of contents 2015-11-04 14:06:43 -05:00
Ted M. Young 58cce4f63f Removed reference to cron file (issue #48) and other cleanup/tidying. 2015-09-30 14:30:16 -07:00
He Simei e0cc2a603f Should mount /etc as volumes when running as a docker container 2015-08-18 09:05:25 +08:00
David Xia 237ba62820 Add table of contents to README 2015-08-08 20:23:45 -04:00
David Xia 4c891dd8cc Update README: how to ignore lintian erros
Fixes #27
2015-08-08 20:09:34 -04:00
David Xia 182bd1f256 Update README: docker-gc needs to be run as root
Fixes #28
2015-08-08 20:09:21 -04:00
Jaak Kütt a5457f4ead Add support for excluding containers
Following the same logic as was for excluding images
added an optional file to have containers excluded
by their names (file location defaults to
/etc/docker-gc-exclude-containers).

Updated README to include a section describing the
container exclude part.
2015-08-06 16:22:46 +03:00
Jens Erat 9b08a948bb Bump version number in README
Bump version number in README, so newly built versions get instsalled when copy/pasting commands from README.
2015-07-28 00:29:00 +02:00
Ted M. Young 4e1261a0be Using Alpine Linux base image and .dockerignore file to make Docker image even smaller. 2015-07-07 11:53:12 -07:00
epipho 6eb2297cd4 Add dockerfile 2015-07-06 02:34:29 -04:00
Michel Krämer 630b63a174 Updated README
* Added `debhelper` to required packages (I wasn't able to build the tool on Ubuntu 14.04 without this package)
* Updated version to 0.0.3 (since this is the latest version)
2015-05-11 11:53:29 +02:00
Drew Csillag b754d6b28a Added ability to make some images not GCable
Also added license in source file
2014-10-14 10:00:33 -04:00
Marc Bruggmann 3cf058cf16 Update documentation. 2014-09-23 23:41:45 +02:00
Daniel Norberg 33b5a9f466 use /var/lib instead of /var/run
Derp. /var/run is cleared on reboot, breaking docker-gc.
2014-09-23 17:00:24 +02:00
Daniel Norberg de5864793d Update README.md 2014-06-25 23:13:52 -04:00
Daniel Norberg 1fbd02407e readme: fix usage 2014-06-22 21:51:50 -04:00
Daniel Norberg e69a1b4d60 readme: fix quoting 2014-06-22 21:43:57 -04:00