Commit Graph

815 Commits

Author SHA1 Message Date
Sam
fc72a150d8 Instantiate APIClient using defined envars e.g. DOCKER_HOST 2018-03-07 08:45:00 -05:00
Sam
8eb165385f Revert "Print usage when argv empty"
This reverts commit fab8c8ba1c.
2018-03-06 13:02:38 -05:00
Sam
814b64c11e Port from 'docker-py' library to renamed 'docker' library.
Use docker.APIClient as object to interface with.
2018-03-06 09:56:19 -05:00
Sam
c904aa1d61 Update requirements.txt version and use docker instead of docker-py 2018-03-06 09:51:04 -05:00
Sam
fab8c8ba1c Print usage when argv empty 2018-03-06 09:50:56 -05:00
Kyle Anderson
49e1bdfe3d
Merge pull request #45 from samiam/fix_empty_volumes
Correctly handle empty dangling volumes
2018-03-05 09:59:26 -08:00
Sam
b93aaa8956 Update travis config and python to newer versions 2018-03-05 09:21:00 -05:00
Sam
02ddd872d2 Updated pre-commit-config 2018-03-04 00:21:08 -05:00
Sam
75451bb5c2 Merge branch 'fix_empty_volumes' of github.com:samiam/docker-custodian into fix_empty_volumes 2018-03-03 22:19:00 -05:00
Sam
79c56d00ef Get tests working again by updating git pre-hooks 2018-03-03 22:10:49 -05:00
Sam
9aaa244b68 Be more idiomatic in testing for volumes 2018-03-03 22:10:16 -05:00
Sam Napolitano
e17dd441be Correctly handle empty dangling volumes
When there's no dangling volumes 'None' is returned but code
is expecting List.  Convert to empty list.
2018-03-03 22:05:25 -05:00
Sam Napolitano
c8710251b8 Correctly handle empty dangling volumes
When there's no dangling volumes 'None' is returned but code
is expecting List.  Convert to empty list.
2018-03-01 13:38:21 -05:00
Kyle Anderson
4fb6946ebe Merge pull request #43 from scrapinghub/fix-image-in-use
Fix broken filtering for images used by containers
2017-05-17 16:37:21 -07:00
Alexander Chekunkov
89da31b4ec Fix broken filtering for images used by containers
Error calling remove_image image=xxx:latest 409 Client Error: Conflict ("conflict: unable to remove repository reference "xxx:latest" (must force) - container 91ab644a7b31 is using its referenced image 7caea3c78386")
2017-04-21 18:12:42 +01:00
Kyle Anderson
4925cb0d9a Merge pull request #40 from ymilki/dangling_volumes
Remove dangling volumes
2016-12-01 09:21:42 -08:00
milki
fee79d9e35 Remove dangling volumes 2016-11-30 17:00:06 -08:00
Kyle Anderson
dc4ed27428 Merge pull request #39 from Yelp/revert_docker-py_change
Revert docker-py version change
2016-10-20 09:46:44 -07:00
Paul O'Connor
2489d9ed3a Revert docker-py version change 2016-10-20 15:00:28 +01:00
Kyle Anderson
c2a424c30c Merge pull request #35 from scrapinghub/exclude-with-patterns
Add patterns support for exclude-image-file
2016-10-10 09:43:35 -07:00
Kyle Anderson
f645eafbad Merge pull request #36 from Yelp/remove_volumes
Remove volumes when removing containers
2016-10-05 09:36:06 -07:00
Paul O'Connor
d2cb9c467d Remove volumes when removing containers 2016-10-05 09:18:56 +01:00
Viktor Shlapakov
7e8feb3904 Add pattern matching info to README.rst 2016-10-04 12:23:40 +03:00
Viktor Shlapakov
cd4121cb59 Add patterns support for exclude-image-file 2016-10-03 16:41:14 +03:00
Kyle Anderson
2375af1513 Fix travis pypi auth 2016-08-31 11:16:25 -07:00
Kyle Anderson
f225f4937b Fix release for 0.6.1 2016-08-31 09:57:49 -07:00
Kyle Anderson
302262639f Release 0.6.1 2016-08-31 09:52:49 -07:00
Daniel Hoherd
70337faa8b Revert 3d552af0d4 2016-06-28 11:18:33 -07:00
Daniel Hoherd
3d552af0d4 Fix 'Depends:' for lucid and newer 2016-06-28 11:16:24 -07:00
Daniel Hoherd
c94e035804 python2.7 vs python >= 2.7 to fix lucid package build. 2016-06-28 10:33:38 -07:00
Daniel
f121f0ff6c Merge pull request #33 from danielhoherd/master
Bump to python >=2.7
2016-06-27 14:34:07 -07:00
Daniel Hoherd
aeb927a193 Bump to python >2.7 2016-06-27 14:29:43 -07:00
Kyle Anderson
d2bf1008b2 Merge pull request #32 from danielhoherd/master
Overriding tox with /bin/true
2016-06-27 14:17:08 -07:00
Daniel Hoherd
aa183a12ee Debugging with true 2016-06-27 13:50:11 -07:00
Kyle Anderson
670df44209 Merge pull request #31 from danielhoherd/master
Bump debian version to 0.6.0
2016-06-24 16:27:00 -07:00
Daniel Hoherd
e6c9c641b8 Bump debian version to 0.6.0 2016-06-24 13:56:48 -07:00
Kyle Anderson
7c6b4cd37f added #egg=docker_custodian to pip example. Closes #22 2016-04-20 14:11:35 -07:00
Kyle Anderson
0749ece61a Merge pull request #27 from kentwills/remove_py26_support
Remove py26 support, code cleanup
2016-04-20 14:10:18 -07:00
Kent Wills
f33f0b4b83 bump version, remove argparse dep for py2.6 2016-04-20 10:19:00 -07:00
Kent Wills
8a17688c41 dict() to {} 2016-04-20 10:13:03 -07:00
Kent Wills
1b7040a432 remove py26, better pre-commit support, cleaner tox 2016-04-20 10:01:02 -07:00
Kyle Anderson
b66adba924 Merge pull request #26 from oktopuz/master
bump docker-py version from 1.4.0 to 1.7.2
2016-04-04 17:03:26 -07:00
Alexander Dudko
d09b45e245 bump docker-py version 2016-04-04 16:58:34 -07:00
Semir Patel
2fdd6524b3 Bump to 0.5.2 2015-12-15 10:01:20 -08:00
Kyle Anderson
a6a66db9e9 Merge pull request #23 from analogue/min_container_age
Don't remove recently created containers that were never used
2015-12-15 09:30:44 -08:00
Semir Patel
c92d4cc24d Fixed bug for containers that were never started and not old 2015-12-15 09:22:43 -08:00
Semir Patel
f19f7a4430 Add --min-container-date 2015-12-14 12:52:22 -08:00
Kyle Anderson
52cc72d41c Merge pull request #18 from dnephin/upgrade_docker_py
Upgrade requirements to fix #17
2015-09-29 13:25:23 -07:00
Daniel Nephin
720401c3b2 Upgrade requirements to fix #17 2015-09-29 14:30:42 -04:00
Kyle Anderson
a4cc854a7f Update the readme to reflect that the official docker image. Fixes #16 2015-09-29 10:57:23 -07:00