summaryrefslogtreecommitdiff
path: root/docker/api
Commit message (Collapse)AuthorAgeFilesLines
* Rename Client -> DockerClientdocker_clientJoffrey F2016-11-283-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>
* Merge pull request #1186 from bfirsh/two-point-ohJoffrey F2016-11-2211-20/+2221
|\ | | | | A new user-focused API
| * Add new user-focused APIBen Firshman2016-11-221-17/+5
| | | | | | | | | | | | See #1086 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Add docstrings to low-level APIBen Firshman2016-11-2210-2/+1808
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Make ping return bool instead of stringBen Firshman2016-11-221-1/+1
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Rename Client to APIClientBen Firshman2016-11-222-9/+421
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Make docker.auth a single fileBen Firshman2016-11-223-10/+5
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Fix ContainerApiMixin.copy with dict container argbiniambekele2016-11-221-1/+1
|/ | | | Signed-off-by: biniambekele <biniambekele@users.noreply.github.com>
* Add support for passing healthcheck to create_containerJamie Greeff2016-11-161-3/+4
| | | | Signed-off-by: Jamie Greeff <jamie@greeff.me>
* Add labels and shmsize arguments to the image buildRyan Belgrave2016-11-081-1/+18
| | | | Signed-off-by: Ryan Belgrave <Ryan.Belgrave@target.com>
* Merge pull request #1230 from LabattFoodService/updateNodeJoffrey F2016-11-071-0/+7
|\ | | | | enable setting of node labels #1225
| * enable setting of node labels #1225Nathan Shirlberg2016-09-271-0/+7
| | | | | | | | | | | | | | | | Added update_node function to enable setting labels on nodes. This exposes the Update a Node function from the Docker API and should enable promoting/demoting manager nodes inside a swarm. Signed-off-by: Nathan Shirlberg <nshirlberg@labattfood.com>
* | Fix endpoint spec and networks params in update_service1212-fix_create_serviceJoffrey F2016-11-041-4/+13
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | WIPJoffrey F2016-11-041-3/+13
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Remove dead code in import_image_from_dataBen Firshman2016-10-131-3/+0
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | 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>