summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Rename non-URL occurrences of docker-py to "Docker SDK for Python"2.0.0-releaseJoffrey F2016-12-125-22/+24
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Bump version and update ChangelogJoffrey F2016-12-073-2/+72
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update code and tests for Engine 1.13 compatibilityJoffrey F2016-12-0711-27/+53
| | | | | | Makefile now runs tests against Docker 1.13 RC Signed-off-by: Joffrey F <joffrey@docker.com>
* Implement swarm node removalJoffrey F2016-12-073-0/+64
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix typo in create_networkJoffrey F2016-12-072-4/+16
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Minimum version 1.24 -> 1.21Joffrey F2016-12-071-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add attachable.Daniel Nephin2016-12-072-2/+15
| | | | Signed-off-by: Daniel Nephin <dnephin@gmail.com>
* Add options to IPAMConfigJoffrey F2016-12-071-1/+8
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix auth config path on WindowsAanand Prasad2016-12-072-12/+77
| | | | | | | The Engine client looks *only* at the USERPROFILE environment variable on Windows, so we should do that too. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Move ssladapter to transport moduleJoffrey F2016-12-075-8/+8
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Properly fill out auth headers in APIClient.build when usingJoffrey F2016-12-071-3/+19
| | | | | | a credentials store Signed-off-by: Joffrey F <joffrey@docker.com>
* Move config type creation from docker.utils functions to classes inJoffrey F2016-12-0719-980/+1001
| | | | | | docker.types Signed-off-by: Joffrey F <joffrey@docker.com>
* Exclude requests==2.12.2 from dependenciesJoffrey F2016-12-071-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* exec: fix running with detach=TrueTomas Tomecek2016-12-072-1/+17
| | | | | | Fixes #1271 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* Rename Client -> DockerClientJoffrey F2016-12-0714-287/+206
| | | | | | | Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
* Re-enable pid_mode checks for API < 1.24Joffrey F2016-12-073-4/+15
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Show a helpful warning when people try to call `client.containers()`Aanand Prasad2016-12-072-0/+17
| | | | | | | | People upgrading to docker-py 2.0 without being aware of the new client API will likely try to call the old `containers()` method. This adds a helpful warning telling them to use APIClient to get the old API. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Allow custom PID mode for the containerStepan Stipl2016-12-072-6/+1
| | | | | | | Docker added support for sharing PID namespaces with other containers since version 1.12 (see https://github.com/docker/docker/pull/22481). Signed-off-by: Stepan Stipl <stepan@stipl.net>
* Fix parsing for an environment file with newlinesJon Cotton2016-12-072-2/+14
| | | | | | Fixes the new, purposely broken test added in the previous commit. Signed-off-by: Jon Cotton <jc@finaltransfer.net>
* Add example for tag()Ben Firshman2016-12-071-0/+5
| | | | | | Carrying #1120. Thanks @Faylixe! Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* do not assume that read will consume the number of bytes requestedMichael Merickel2016-12-071-3/+7
| | | | | | | | | | | | | The issue is that ``os.read`` does not always read the expected number of bytes, and thus we are moving to the next frame too early causing drift in the byte stream. When the reading drifts, it starts reading garbage as the next frame size. The some examples of frame sizes were 4032897957 bytes, etc. Values this large were causing the exceptions from ``os.read``. fixes #1211 Signed-off-by: Michael Merickel <michael@merickel.org>
* Remove support for host_config in Client.startJoffrey F2016-12-072-101/+26
| | | | | | | Any additional arguments passed to start will raise a DeprecatedMethod (DockerException) exception. Signed-off-by: Joffrey F <joffrey@docker.com>
* Start to rename docker-py to docker-sdk-pythonBen Firshman2016-12-079-37/+37
| | | | | | | | | | Pretty much everything except renaming the GitHub repo and documentation, which is not actually done yet. Nearer the release we can do a search/replace for all that stuff. Ref #1310 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Bump version to 2.0.0-devBen Firshman2016-12-071-1/+1
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Use find_packages in setup.pyBen Firshman2016-12-071-5/+2
| | | | | | It was missing docker.models, and this will fix it forever more. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Update setup.py detailsBen Firshman2016-12-071-4/+4
| | | | | | Move from "docker-py" package to "docker". Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Update readme to say "Docker Engine API"Ben Firshman2016-12-071-1/+1
| | | | | | It's not the Docker API. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Specify encoding when loading readmeBen Firshman2016-12-071-1/+2
| | | | | | | | Loading readme fails when system locale is not utf-8. Potentially replaces #1313 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add unit tests for should_check_directory.Brandon Bodnar2016-12-071-1/+75
| | | | Signed-off-by: Brandon Bodnar <bodnarbm@gmail.com>
* Prevent traversing excluded directories with no possible dockerignore exceptionsBrandon Bodnar2016-12-071-19/+32
| | | | | | Fixes an issue where all files in a rather large excluded folder are traversed and examined when creating the build context for potential exception to the exclusion, even though the exclusion rule is for a completely unrelated folder. Signed-off-by: Brandon Bodnar <bodnarbm@gmail.com>
* Remove MAINTAINER from DockerfilesBen Firshman2016-12-074-11/+0
| | | | | | | | It was deprecated in https://github.com/docker/docker/pull/25466 (Sorry @shin- ;) Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add Ben to MAINTAINERSJoffrey F2016-12-071-0/+6
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add warning about development version to readmeBen Firshman2016-12-071-0/+2
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Change package in readme back to docker-pyBen Firshman2016-12-071-1/+1
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Use SVG for build status badgeBen Firshman2016-12-071-1/+1
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Fix documentation link in readmeBen Firshman2016-12-071-1/+1
| | | | | | | | | The rest of the readme is wrong until we release 2.0, but at least the documentation points to the right place. Closes #1302 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Fix ContainerApiMixin.copy with dict container argbiniambekele2016-12-071-1/+1
| | | | Signed-off-by: biniambekele <biniambekele@users.noreply.github.com>
* Add helpful error for APIClient methods on ClientBen Firshman2016-12-072-0/+24
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add new Sphinx documentationBen Firshman2016-12-0731-2142/+892
| | | | | | Initial work thanks to @aanand. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add new user-focused APIBen Firshman2016-12-0736-77/+3942
| | | | | | See #1086 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add docstrings to low-level APIBen Firshman2016-12-0712-2/+1876
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Move contributing docs to CONTRIBUTING.mdBen Firshman2016-12-072-36/+34
| | | | | | CONTRIBUTING.md is the place that GitHub expects it to be. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add random_name test helperBen Firshman2016-12-072-7/+8
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Split out base integration test for APIClientBen Firshman2016-12-0712-64/+67
| | | | | | So the cleanup stuff can be reused for model tests. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Move APIClient tests into single fileBen Firshman2016-12-072-79/+71
| | | | | | For some reason this was spread across two files. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Rename DockerClientTest to BaseAPIClientTestBen Firshman2016-12-078-18/+18
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Make ping return bool instead of stringBen Firshman2016-12-071-1/+1
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Rename Client to APIClientBen Firshman2016-12-0724-100/+114
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Remove AutoVersionClientBen Firshman2016-12-073-22/+1
| | | | | | Just do Client(version='auto'). Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Drop support for Python 2.6Ben Firshman2016-12-0710-82/+36
| | | | | | | Because it's ancient. If you're still using it, you can use an old version of docker-py. Signed-off-by: Ben Firshman <ben@firshman.co.uk>