summaryrefslogtreecommitdiff
path: root/docker/api
Commit message (Collapse)AuthorAgeFilesLines
* Add support for restart policy updateMaxime Feron2016-09-281-1/+9
| | | | Signed-off-by: Maxime Feron <maxime.feron@corp.ovh.com>
* Ignore not in swarm error when force leavingBen Firshman2016-09-141-1/+5
| | | | | | | | | Real errors were getting swallowed in these tests, producing other confusing cascading errors. This makes it much easier to make sure a node is not in a Swarm, while also handling other errors correctly. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add support for changes param in import_image* methodsJoffrey F2016-09-061-75/+97
| | | | | | Reduce code duplication in import_image* methods Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for force disconnect1105-network-apiJoffrey F2016-08-311-2/+9
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add support for labels and enable_ipv6 in create_networkJoffrey F2016-08-311-1/+18
| | | | | | Tests + docs Signed-off-by: Joffrey F <joffrey@docker.com>
* Private images support in create_service / update_service1085-service-supportJoffrey F2016-08-232-37/+45
| | | | | | | | Refactor auth header computation Add tasks methods and documentation. Signed-off-by: Joffrey F <joffrey@docker.com>
* New docker.types subpackage containing advanced config dictionary typesJoffrey F2016-08-192-181/+11
| | | | | | | Tests and docs updated to match docker.utils.types has been moved to docker.types Signed-off-by: Joffrey F <joffrey@docker.com>
* Service API integration testsJoffrey F2016-08-171-2/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Swarm service API implementationJoffrey F2016-08-172-1/+237
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* 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>