summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add unlock methods to Swarm modelunlock_swarm_supportJoffrey F2017-11-073-5/+16
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add unlock_swarm and get_unlock_key to APIClientJoffrey F2017-11-072-1/+59
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Style fixes. Copied docs to APIClient as wellJoffrey F2017-11-062-4/+8
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* explain the socket parameter of exec_runMartin Monperrus2017-11-061-3/+5
| | | | Signed-off-by: Martin Monperrus <martin.monperrus@gnieh.org>
* Add support for insert_defaults in inspect_serviceJoffrey F2017-11-063-5/+33
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update SwarmSpec to include new parametersJoffrey F2017-11-035-18/+160
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for scope filter in inspect_networkJoffrey F2017-11-023-4/+46
| | | | | | Fix missing scope implementation in create_network Signed-off-by: Joffrey F <joffrey@docker.com>
* OopsJoffrey F2017-11-021-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix build tests to not rely on internet connectivityJoffrey F2017-11-021-10/+20
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Disable buffering based on presence of Connection Upgrade headersJoffrey F2017-11-022-37/+35
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Prevent data loss when attaching to containerChris Harris2017-11-021-3/+30
| | | | | | | | | | | | | | | The use of buffering within httplib.HTTPResponse can cause data to be lost. socket.makefile() is called without a bufsize, which causes a buffer to be used when recieving data. The attach methods do a HTTP upgrade to tcp before the raw socket is using to stream data from the container. The problem is that if the container starts stream data while httplib/http.client is reading the response to the attach request part of the data ends will end up in the buffer of fileobject created within the HTTPResponse object. This data is lost as after the attach request data is read directly from the raw socket. Signed-off-by: Chris Harris <chris.harris@kitware.com>
* Doc fixesJoffrey F2017-11-014-20/+22
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for secret driver in create_secretJoffrey F2017-11-011-1/+12
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Improve docs for service list filtersAlessandro Baldo2017-11-013-4/+17
| | | | | | | | - add "label" and "mode" to the list of available filter keys in the high-level service API - add "label" and "mode" to the list of available filter keys in the low-level service API - add integration tests Signed-off-by: Alessandro Baldo <git@baldoalessandro.net>
* More ContainerSpec testsJoffrey F2017-10-264-32/+69
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for configs managementJoffrey F2017-10-2611-3/+464
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for new ContainerSpec parametersJoffrey F2017-10-2610-50/+265
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix indentation in docstringErik Johnson2017-10-261-1/+1
| | | | | | | The incorrect indentation causes improper formatting when the docs are published. Signed-off-by: Erik Johnson <palehose@gmail.com>
* Update test engine versions in JenkinsfileJoffrey F2017-10-253-5/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for extra_hosts option in buildJoffrey F2017-10-253-1/+50
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Pin flake8 versionJoffrey F2017-10-242-2/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for mounts in HostConfigJoffrey F2017-10-244-1/+80
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for new types and options to docker.types.MountJoffrey F2017-10-241-14/+41
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix simple documentation copy/paste error.Jan Losinski2017-10-161-2/+2
| | | | Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
* Remove superfluous version validationJoffrey F2017-10-021-1/+0
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Adding swarm id_attribute to match docker outputSteve Clark2017-09-212-0/+3
| | | | | Swarm id is returned in a attribute with the key ID. The swarm model was using the default behaviour and looking for Id. Signed-off-by: Steve Clark <steve@cobe.io>
* Fix docs, incorrect param namebrett552017-09-211-1/+1
| | | | Signed-off-by: brett55 <bjcull2@gmail.com>
* Do not interrupt streaming when encountering 0-length framesJoffrey F2017-08-312-3/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix prune_images docstringJoffrey F2017-08-311-2/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Use unambiguous advertise-addr when initializing a swarmJoffrey F2017-08-316-8/+8
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Always send attach request as streamingJoffrey F2017-08-212-5/+13
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Commit d798afca made changes for the handling of '**' patterns inVeli-Matti Lintu2017-08-212-1/+18
| | | | | | | | .dockerignore. This causes an IndexError with patterns ending with '**', e.g. 'subdir/**'. This adds a missing boundary check before checking for trailing '/'. Signed-off-by: Veli-Matti Lintu <veli-matti.lintu@nosto.com>
* Bump 2.6.0-devJoffrey F2017-08-171-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge branch 'release' of github.com:docker/docker-pyJoffrey F2017-08-175-6/+50
|\ | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Changelog typoJoffrey F2017-08-171-1/+1
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Bump 2.5.02.5.0Joffrey F2017-08-173-2/+36
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Update default API versionJoffrey F2017-08-171-1/+1
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Update test versionsJoffrey F2017-08-172-4/+4
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Fix handling of non-multiplexed (TTY) streams over upgraded socketsJoffrey F2017-08-176-11/+42
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Add support for the `squash` flag when buildingGabriel Féron2017-08-172-2/+39
| | | | | | | | | | | | Also added a test that compares the number of layers in the default mode, and with the new flag Signed-off-by: Gabriel Féron <feron.gabriel@gmail.com>
| * Use better version comparison functionJoffrey F2017-08-171-3/+2
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Allow detach and remove for api version >= 1.25 and use auto_remove when ↵David Steines2017-08-172-2/+38
| | | | | | | | | | | | both are set. Continue raising an exception for api versions <1.25. Signed-off-by: David Steines <d.steines@gmail.com>
| * Use collection's get method inside ImageCollection's list methodadrianliaw2017-08-171-1/+1
| | | | | | | | Signed-off-by: Adrian Liaw <adrianliaw2000@gmail.com>
| * Handle untyped ContainerSpec dict in _check_api_featuresJoffrey F2017-08-172-1/+18
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Daemon expects full URL of hub in auth config dict in build payloadJoffrey F2017-08-172-3/+6
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Upgrade tox and virtualenv in appveyor to make sure we have the latest pip.Ying2017-08-171-1/+1
| | | | | | | | Signed-off-by: Ying <ying.li@docker.com>
| * If we're pinning exact versions of things for requirements.txt, pincyli2017-08-172-8/+18
| | | | | | | | | | | | all dependencies of dependencies as well so we can get a consistent build. Signed-off-by: cyli <cyli@twistedmatrix.com>
| * Require "requests[security]" if the `[tls]` option is selected, which also ↵cyli2017-08-173-1/+15
| | | | | | | | | | | | | | | | | | | | | | installs: pyOpenSSL, cryptography, idna and installs cryptography's version of openssl in Mac OS (which by default has an ancient version of openssl that doesn't support TLS 1.2). Signed-off-by: cyli <cyli@twistedmatrix.com>
| * Leading slash in .dockerignore should be ignoredJoffrey F2017-08-172-0/+6
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Return generator for output of load_image endpointJoffrey F2017-08-175-6/+58
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>