summaryrefslogtreecommitdiff
path: root/docker/client.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow passing of env overrides to credstore through APIClient ctorJoffrey F2018-06-081-2/+7
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add close() method to DockerClient.Matthieu Nottale2018-03-141-0/+4
| | | | Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
* Fixed DEFAULT API VERSION in docstrings.Felipe Ruhland2017-12-141-2/+2
| | | | Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
* Add support for configs managementJoffrey F2017-11-071-0/+9
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1647 from docker/1642-dockerclient-secretsJoffrey F2017-06-151-0/+1
|\ | | | | DockerClient.secrets should be a @property
| * DockerClient.secrets should be a @property1642-dockerclient-secretsJoffrey F2017-06-141-0/+1
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Move default `timeout` into `from_env`grahamlyons2017-06-091-1/+2
|/ | | | | | | | We'd like to be able to pass `None` as a value for `timeout` because it has meaning to the `requests` library (http://docs.python-requests.org/en/master/user/advanced/#timeouts) Signed-off-by: grahamlyons <graham@grahamlyons.com>
* Update mentions of the default API version in docsJoffrey F2017-04-031-2/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add df methodJoffrey F2017-03-011-0/+4
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Implement secrets APIJoffrey F2017-02-131-0/+8
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add plugin API implementation to DockerClientJoffrey F2017-02-031-0/+9
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1315 from bfirsh/rename-docker-py-to-docker-sdk-pythonJoffrey F2016-12-021-3/+3
|\ | | | | Start to rename docker-py to docker-sdk-python
| * Start to rename docker-py to docker-sdk-pythonBen Firshman2016-11-281-3/+3
| | | | | | | | | | | | | | | | | | | | 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>
* | Rename Client -> DockerClientdocker_clientJoffrey F2016-11-281-4/+4
|/ | | | | | | Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
* Add helpful error for APIClient methods on ClientBen Firshman2016-11-221-0/+10
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add new user-focused APIBen Firshman2016-11-221-0/+157
| | | | | | See #1086 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Rename Client to APIClientBen Firshman2016-11-221-402/+0
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Remove AutoVersionClientBen Firshman2016-11-221-10/+0
| | | | | | Just do Client(version='auto'). Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Make docker.ssladaptor a single fileBen Firshman2016-11-221-2/+1
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Make docker.auth a single fileBen Firshman2016-11-221-4/+1
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Drop support for API versions <1.24Ben Firshman2016-11-221-0/+8
| | | | | | | Implemented as just a warning. Actual removal of code will follow sometime in the future. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Several fixes to npipe supportnpipe-advancedJoffrey F2016-10-121-1/+3
| | | | | | | | | - Fix _get_raw_response_socket to always return the NpipeSocket object - Override NpipeHTTPConnectionPool._get_conn to avoid crash in urllib3 - Fix NpipeSocket.recv_into for Python 2 - Do not call select() on NpipeSocket objects Signed-off-by: Joffrey F <joffrey@docker.com>
* Update adapters to use pool_connections instead of num_poolsJoffrey F2016-10-041-2/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* fix for got an unexpected keyword argument 'num_pools'Pierre Tardy2016-10-041-1/+1
| | | | | | requests's HTTPAdapter API is pool_connections for number of connection of the pool Signed-off-by: Pierre Tardy <tardyp@gmail.com>
* Add timeout to from_envBen Firshman2016-10-031-1/+3
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Number of pools in adapter is configurable1207-configurable-num-poolsJoffrey F2016-09-121-4/+11
| | | | | | Default increased from 10 to 25 Signed-off-by: Joffrey F <joffrey@docker.com>
* Remove default adapters when connecting through a unix socket.1076-dns-fixJoffrey F2016-09-081-0/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix licensesBen Firshman2016-09-051-14/+0
| | | | | | | * Complete main LICENSE * Remove unnecessary licenses from individual files Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Merge pull request #1167 from docker/1075-from-env-versionJoffrey F2016-08-251-1/+2
|\ | | | | Support version parameter in `Client.from_env`
| * Support version parameter in `Client.from_env`1075-from-env-versionJoffrey F2016-08-251-1/+2
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Merge pull request #1082 from masci/fix_stream_helperJoffrey F2016-08-231-1/+1
|\ \ | |/ |/| Invoke self._result passing `json=True` when `decode=True`
| * invoke self._result with json=True if decode=TrueMassimiliano Pippi2016-06-071-1/+1
| | | | | | | | Signed-off-by: Massimiliano Pippi <massi@datadoghq.com>
* | Merge pull request #1081 from tescalada/masterJoffrey F2016-08-231-2/+10
|\ \ | | | | | | 1059-Fixing a bug with multiple json objects
| * | 1059-Fixing a bug with multiple json objectsTristan Escalada2016-08-011-2/+10
| | | | | | | | | | | | | | | | | | | | | This splits the text by CRLF and then json.loads each part independently instead of attempting the parse the whole string. Signed-off-by: Tristan Escalada <tristan@escalada.us>
* | | Swarm service API implementationJoffrey F2016-08-171-2/+3
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | docker client consistency: don't quote ':/'Tomas Tomecek2016-08-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | E.g. docker client `/v1.21/images/localhost:5000/busybox/push?tag=` docker-py `/v1.21/images/localhost%3A5000%2Fbusybox/push` Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* | | Added support for docker swarm api version 1.24.minzhang2016-08-031-1/+2
|/ / | | | | | | | | | | | | | | | | | | | | 3 API are added swarm_init() swarm_leave() swarm_join() Signed-off-by: Min Zhang<minzhang.work@gmail.com> Signed-off-by: Min Zhang <virgilerin@gmail.com>
* | Set custom user agent on clientBen Firshman2016-07-201-1/+3
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Rename read_iter() to frames_iter()Aanand Prasad2016-07-131-3/+3
| | | | | | | | | | | | | | This makes it more clearly high-level and distinct from the raw data-reading functions Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Remove unused importsAanand Prasad2016-07-131-4/+1
| | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Move read_loop() into docker.utils.socket.read_iter()Aanand Prasad2016-07-131-12/+4
| | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Remove duplicated methods from container.pyAanand Prasad2016-07-131-31/+1
| | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Read from socket after sending TCP upgrade headers.Joffrey F2016-07-131-0/+50
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Update parse_host and testsJoffrey F2016-06-021-2/+3
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | npipe support cleanupJoffrey F2016-06-021-7/+12
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Experimental npipe:// supportJoffrey F2016-06-021-0/+12
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Don't set socket timeout if it's already disabled when streamingKevin Frommelt2016-05-101-6/+21
| | | | Signed-off-by: Kevin Frommelt <kevin.frommelt@gmail.com>
* Add docker.from_env() shortcutBen Firshman2016-03-151-1/+9
| | | | | | A much neater way of getting started with docker-py. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Support unspecified protocol in base_url when using TLS894-docker_host_envJoffrey F2016-01-281-4/+4
| | | | | | (assume HTTPS) Signed-off-by: Joffrey F <joffrey@docker.com>
* Add HttpHeaders support in load_configPavel Kravchenko2016-01-181-1/+5
| | | | Signed-off-by: Pavel Kravchenko <kpavel@il.ibm.com>