summaryrefslogtreecommitdiff
path: root/docker/api
Commit message (Collapse)AuthorAgeFilesLines
* Add `nodes` and `inspect_node` methodsswarm-supportJoffrey F2016-08-111-0/+15
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update arguments for several Swarm API methodsJoffrey F2016-08-041-8/+19
| | | | | | | Add Client.update_swarm method Add test for Client.update_swarm Signed-off-by: Joffrey F <joffrey@docker.com>
* Update swarm methods to include newly added parametersJoffrey F2016-08-031-16/+27
| | | | | | | | | Rename swarm methods to be more explicit Utility methods / types to create swarm spec objects Integration tests Signed-off-by: Joffrey F <joffrey@docker.com>
* Added support for docker swarm api version 1.24.minzhang2016-08-031-1/+1
| | | | | | | | | | | 3 API are added swarm_init() swarm_leave() swarm_join() Signed-off-by: Min Zhang <virgilerin@gmail.com> Signed-off-by: Min Zhang <virgilerin@gmail.com>
* Added support for docker swarm api version 1.24.minzhang2016-08-032-0/+42
| | | | | | | | | | | 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>
* Add optional auth config to docker pushKeerthan Reddy Mala2016-07-221-10/+17
| | | | Signed-off-by: Keerthan Reddy Mala <kmala@deis.com>
* Read from socket after sending TCP upgrade headers.Joffrey F2016-07-132-7/+14
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add hijack hints for non-detached exec api callsDavid Gageot2016-07-131-1/+9
| | | | Signed-off-by: David Gageot <david@gageot.net>
* Add hijack hints for attach api callsDavid Gageot2016-07-131-2/+8
| | | | Signed-off-by: David Gageot <david@gageot.net>
* volumes,create: support adding labelsTomas Tomecek2016-07-131-1/+12
| | | | | | Fixes #1102 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* Pass X-Registry-Auth when building an imageJustin Michalicek2016-07-121-3/+3
| | | | | | | | | | | | * Initialize headers variable in BuildApiMixin.build() as a dict rather than as None. This way the correct object gets passed to _set_auth_headers() even if no headers were set in build() * Changing object from None to {} in BuildApiMixin._set_auth_headers() removed because it changes the object reference, so has no effect on calling code. Signed-off-by: Justin Michalicek <jmichalicek@gmail.com>
* signal in Client.kill can be a string containing the signal's nameJoffrey F2016-06-281-1/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for link-local IPs in endpoint config1107-link-local-ipsJoffrey F2016-06-241-2/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Unify endpoint config creation when using connect_container_to_networkJoffrey F2016-06-131-19/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* support new Py3.5 Enum signalsThomas Grainger2016-05-191-1/+1
| | | | Signed-off-by: Thomas Grainger <tom.grainger@procensus.com>
* Add support for creating internal networksJonathan Giannuzzi2016-05-181-1/+8
| | | | Signed-off-by: Jonathan Giannuzzi <jonathan@giannuzzi.be>
* Let server-side determine which serveraddress to use when none is specified1044-fix-login-defaultJoffrey F2016-04-281-3/+1
| | | | | | in login() Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge branch 'master' of https://github.com/dimaspivak/docker-py into ↵Joffrey F2016-03-231-2/+3
|\ | | | | | | dimaspivak-master
| * Add support for changes param to ContainerApiMixin.commitDima Spivak2016-03-211-2/+3
| | | | | | | | | | | | docker commit --changes was added to Docker in 1.6.0. Signed-off-by: Dima Spivak <dima@spivak.ch>
* | Merge branch 'gferon-master'Joffrey F2016-03-231-1/+3
|\ \
| * | Add missing CheckDuplicate parameter to /networks/create API callGabriel Féron2016-03-221-1/+3
| |/ | | | | | | | | | | When set to True, this prevents creating more than one network with the same name (see https://docs.docker.com/engine/reference/api/docker_remote_api_v1.21/#create-a-network) Signed-off-by: Gabriel Féron <feron.gabriel@gmail.com>
* | Make gzip encoding optionalJoffrey F2016-03-221-4/+9
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Fix line-spacing for buildMichael Sander2016-03-221-1/+2
| | | | | | Signed-off-by: Michael Sander <michael.sander@docketalarm.com>
* | Encode the tar ball with gzipMichael Sander2016-03-221-1/+2
|/ | | | | | Gzipping this tarball can greatly reduce the time it takes to send a docker file. Signed-off-by: speedplane <mes65@cornell.edu>
* Add ip4&ip6 (#935) support, network/id/connectMatt Daue2016-03-021-0/+18
| | | | | | | | | | | | Signed-off-by: Matt Daue <mattdaue@gmail.com> - Implement check to validate API ver is >= 1.22 for new feature - Includes patch @elchris82: Changed network in data dict to IPAMConfig as needed from the API. See https://github.com/docker/docker/issues/20732 - Update unit test for container attach to net - Update integration tests - Add integration test for IP setting Signed-off-by: Matt Daue <mattdaue@gmail.com>
* Use decode on push and pull operations.Aleksandar Topuzovic2016-03-011-4/+4
| | | | | | | Stream helper has the ability to decode the responses from strings to JSON. This commit enables this functionality on push and pull operations. Signed-off-by: Aleksandar Topuzovic <aleksandar.topuzovic@gmail.com>
* Merge pull request #916 from docker/container_update_featureJoffrey F2016-02-241-0/+33
|\ | | | | Support for container limits update
| * update_container now supports string valuesJoffrey F2016-02-231-4/+5
| | | | | | | | | | | | for mem_limit, memswap_limit, kernel_memory and mem_reservation Signed-off-by: Joffrey F <joffrey@docker.com>
| * New `update_container` methodJoffrey F2016-02-231-0/+32
| | | | | | | | | | | | Allows user to update container limits in-flight. Signed-off-by: Joffrey F <joffrey@docker.com>
* | Separate params stream and follow for logs.Stéphane Seguin2016-02-161-2/+4
|/ | | | | | Closes #934 Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
* Raise exceptions for API errors on network connect/disconnectAanand Prasad2016-01-251-2/+4
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Support links when creating containers or connecting to networksAanand Prasad2016-01-201-2/+4
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Normalise/fix networking API JSON keysAanand Prasad2016-01-181-4/+4
| | | | | | | - Use CamelCase - `auxaddresses` -> `AuxiliaryAddresses` Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Implement support for network-scoped aliasesAanand Prasad2016-01-142-4/+16
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* allow custom ipam options when creating networksRyan Belgrave2016-01-041-2/+3
| | | | Signed-off-by: Ryan Belgrave <rmb1993@gmail.com>
* Fix remove_volume return valueSumit Sahrawat2015-12-101-1/+0
| | | | Signed-off-by: Sumit Sahrawat <sumit.sahrawat.apm13@iitbhu.ac.in>
* Allow providing options when creating networksSumit Sahrawat2015-12-101-1/+5
| | | | | | | | | | | | | | Following the spec: http://docs.docker.com/engine/reference/api/docker_remote_api_v1.21/#create-a-network I have added an Options argument to create_network. This opens up the possibility of creating isolated containers with no internet access programmatically. We require such facilities in https://github.com/jupyter/tmpnb/issues/187. Signed-off-by: Sumit Sahrawat <sumit.sahrawat.apm13@iitbhu.ac.in>
* Merge pull request #868 from jstewmon/config-stop-signalJoffrey F2015-12-081-2/+3
|\ | | | | added stop_signal to create container config
| * added stop_signal to create container configJonathan Stewmon2015-12-031-2/+3
| | | | | | | | Signed-off-by: Jonathan Stewmon <jstewmon@rmn.com>
* | allow interactive execTomas Tomecek2015-12-031-4/+11
|/ | | | Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* fix typo filter param for `volumes`Nicolas Delaby2015-12-011-1/+1
| | | | | | https://docs.docker.com/engine/reference/api/docker_remote_api_v1.21/#list-volumes Signed-off-by: Nicolas Delaby <nicolas.delaby@lock8.me>
* Update auth.resolve_repository_nameJoffrey F2015-11-231-3/+2
| | | | | | | | | | | More relaxed version that matches the constraints imposed by the current version of the docker daemon. Few unit tests to verify the new cases. Client.pull was trying to set the tag value when it wasn't supposed to, fixed now. utils.parse_repository_tag is simpler and supports @sha... notation Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #805 from sourcelair/enhancement/stats-no-streamDaniel Nephin2015-11-171-2/+7
|\ | | | | Add support for non-stream stats of containers
| * Add suport for non-stream stats of containersAntonis Kalipetis2015-10-221-2/+7
| | | | | | | | | | | | | | Adds one more flag to the `stats` method for streaming responses. Keeps default as streamed response for backwards compatibility. Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
* | Merge pull request #796 from v-boyko/feature/logs_sinceDaniel Nephin2015-11-121-1/+13
|\ \ | | | | | | Support the 'since' option in the 'containers/<id>/logs' endpoint (API upgrade)
| * \ Merge upstream branch 'master' into feature/logs_sinceViacheslav Boiko2015-11-055-4/+88
| |\ \ | | | | | | | | | | | | Signed-off-by: Viacheslav Boiko <v.e.boyko@gmail.com>
| * | | Support the 'since' option in the 'containers/<id>/logs' endpointViacheslav Boiko2015-10-021-1/+13
| | | | | | | | | | | | | | | | Signed-off-by: Viacheslav Boiko <v.e.boyko@gmail.com>
* | | | Client.logs(tail=0) now shows no past logs (expected behavior)Joffrey F2015-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Add test confirming the new behavior. Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Support 'buildargs' parameter for docker 1.9.Leonty2015-11-101-1/+10
| |/ / |/| | | | | | | | Signed-off-by: Leonty Balovnev <tigreavecdesailes@gmail.com>
* | | Support unicode commands.Daniel Nephin2015-10-261-3/+1
| |/ |/| | | | | Signed-off-by: Daniel Nephin <dnephin@gmail.com>