Commit Graph

25 Commits

Author SHA1 Message Date
Kyle Anderson
37ea0fffb8 Release 0.7.1 2018-03-21 15:26:44 -07:00
Andy Tran
b84b30052a Refactor container exclude labels 2018-03-20 16:34:02 -07:00
Andy Tran
95ded14891 Add --exclude-container-label argument to dcgc
Add an argument to dcgc that allows dcgc to ignore removing a container
and its child images based on the container's label
2018-03-20 16:33:13 -07:00
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
fab8c8ba1c Print usage when argv empty 2018-03-06 09:50:56 -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
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
milki
fee79d9e35 Remove dangling volumes 2016-11-30 17:00:06 -08: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
Paul O'Connor
d2cb9c467d Remove volumes when removing containers 2016-10-05 09:18:56 +01:00
Viktor Shlapakov
cd4121cb59 Add patterns support for exclude-image-file 2016-10-03 16:41:14 +03:00
Kyle Anderson
302262639f Release 0.6.1 2016-08-31 09:52:49 -07:00
Kent Wills
f33f0b4b83 bump version, remove argparse dep for py2.6 2016-04-20 10:19:00 -07:00
Kent Wills
1b7040a432 remove py26, better pre-commit support, cleaner tox 2016-04-20 10:01:02 -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
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
Daniel Nephin
720401c3b2 Upgrade requirements to fix #17 2015-09-29 14:30:42 -04:00
John Schrantz
773f97d450 Automatically determine the Docker API version to use instead of assuming the latest. 2015-09-02 12:58:04 -05:00
Daniel Nephin
b45fd97e81 Support excluding some images from removal. 2015-07-20 15:41:11 -07:00
Daniel Nephin
cfcb46e1de Adding project files 2015-07-08 12:33:52 -07:00