summaryrefslogtreecommitdiff
path: root/docker/api
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* | Update `Client.create_volume` to use new endpoint819-volumes-createJoffrey F2015-10-211-1/+1
| | | | | | | | | | | | | | | | New API endpoint is POST /volumes/create (previously just /volumes) Since the feature is yet unreleased (RC), no fallback strategy is implemented. Signed-off-by: Joffrey F <joffrey@docker.com>
* | put/get archive implementationJoffrey F2015-10-081-0/+30
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Add minimum_version decorators on NetworkApi methodsJoffrey F2015-10-081-1/+7
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Implement methods for managing networksAanand Prasad2015-10-052-0/+50
|/ | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Merge pull request #789 from PierreF/top_ps_argsJoffrey F2015-09-281-2/+5
|\ | | | | Allow to specify ps_args when listing processes
| * Allow to specify ps_args when listing processesPierre Fersing2015-09-251-2/+5
| | | | | | | | Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
* | Support explicit protocol in Client.port792-fix-ports-commandJoffrey F2015-09-281-3/+6
|/ | | | | | | | | User can now specify a protocol in Client.port using the port/proto syntax. Default port is now TCP instead of UDP (to match the behavior of `docker port`) when no proto is specified. Regression test Signed-off-by: Joffrey F <joffrey@docker.com>
* Generic skip decorator for low API version accessible to all testsJoffrey F2015-09-166-71/+45
| | | | | | | | | | Add simpler version comparison functions Add decorator to enforce minimum version in API methods Fix utils imports Add minimum_version decorators on API methods that needed it GroupAdd test requires API version >= 1.20 Signed-off-by: Joffrey F <joffrey@docker.com>
* Modify unit tests suite to allow mock routes to optionally be method-awareJoffrey F2015-09-161-3/+5
| | | | | | | Added mock API routes for volumes API Add unit tests and integration tests for volume API Signed-off-by: Joffrey F <joffrey@docker.com>
* Basic volume API implementation.Joffrey F2015-09-152-0/+49
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Move client internals back to Client class. Remove obsolete ClientBase classapi_splitupJoffrey F2015-09-111-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Split different APIs into several mixins for clarity / easier maintenanceJoffrey F2015-09-116-0/+915
Signed-off-by: Joffrey F <joffrey@docker.com>