summaryrefslogtreecommitdiff
path: root/docker
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken unbuffered streaming with Py31799-unixhttpresponse-py3-fixJoffrey F2017-11-081-6/+5
| | | | 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-062-5/+22
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update SwarmSpec to include new parametersJoffrey F2017-11-033-18/+120
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for scope filter in inspect_networkJoffrey F2017-11-022-4/+27
| | | | | | Fix missing scope implementation in create_network Signed-off-by: Joffrey F <joffrey@docker.com>
* Disable buffering based on presence of Connection Upgrade headersJoffrey F2017-11-021-27/+25
| | | | 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-012-2/+4
| | | | | | | | - 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>
* Add support for configs managementJoffrey F2017-10-264-0/+171
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for new ContainerSpec parametersJoffrey F2017-10-269-48/+259
| | | | 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>
* Add support for extra_hosts option in buildJoffrey F2017-10-252-1/+18
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for mounts in HostConfigJoffrey F2017-10-243-1/+15
| | | | 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>
* Adding swarm id_attribute to match docker outputSteve Clark2017-09-211-0/+2
| | | | | 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-311-2/+2
| | | | 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>
* Always send attach request as streamingJoffrey F2017-08-211-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Commit d798afca made changes for the handling of '**' patterns inVeli-Matti Lintu2017-08-211-1/+1
| | | | | | | | .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>
* Bump 2.5.02.5.0Joffrey F2017-08-171-1/+1
| | | | 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>
* Fix handling of non-multiplexed (TTY) streams over upgraded socketsJoffrey F2017-08-174-9/+40
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for the `squash` flag when buildingGabriel Féron2017-08-171-1/+12
| | | | | | 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-171-2/+8
| | | | | | 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-171-1/+1
| | | | 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>
* Leading slash in .dockerignore should be ignoredJoffrey F2017-08-171-0/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Return generator for output of load_image endpointJoffrey F2017-08-172-3/+29
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Return the result of the API when using remove_image and load_imageCecile Tonglet2017-08-171-2/+2
| | | | | | Those calls return result that can be used by the developers. Signed-off-by: Cecile Tonglet <cecile.tonglet@gmail.com>
* Improve ContainerError message computeJoffrey F2017-08-171-6/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* client.containers.run returns None if none of json-file or journald logging ↵Artem Bolshakov2017-08-172-3/+23
| | | | | | drivers used Signed-off-by: Artem Bolshakov <either.free@gmail.com>
* Fix domainname documentation in create_container functionErik Johnson2017-08-171-1/+1
| | | | | | | It looks like this was probably originally copypasta'ed from dns_search and not edited afterward. Signed-off-by: Erik Johnson <palehose@gmail.com>
* Generating regexp from .dockerignore file in a similar way as docker-ce.Jakub Goszczurny2017-08-171-8/+19
| | | | Signed-off-by: Jakub Goszczurny <szczurmys@o2.pl>
* client.networks.create check_duplicates docs not reflective of behaviorDima Spivak2017-08-171-1/+1
| | | | | | Fixes #1693 Signed-off-by: Dima Spivak <dima@spivak.ch>
* Fix #1673 check resource error in container network APIMatthew Berry2017-08-171-2/+2
| | | | | | | | Container network functions checked 'image' as resource ID and not 'container'. This caused a traceback when using container as named argument. Signed-off-by: Matthew Berry <mtberry89@gmail.com>
* dev versionJoffrey F2017-08-171-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Bump 2.4.22.4.2-releaseJoffrey F2017-06-281-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Compose 1.14.0 hackJoffrey F2017-06-281-0/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Bump 2.4.12.4.1-releaseJoffrey F2017-06-281-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* split_port should not break when passed a non-string argumentJoffrey F2017-06-281-0/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Bump 2.4.02.4.0-releaseJoffrey F2017-06-221-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1661 from shin-/1622-service-ttyJoffrey F2017-06-223-1/+12
|\ | | | | Add support for ContainerSpec.TTY