summaryrefslogtreecommitdiff
path: root/docker/api/container.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix a number of docs formatting issuesdocs-fixesJoffrey F2017-01-181-24/+24
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Move config type creation from docker.utils functions to classes inconfig_typesJoffrey F2016-12-011-7/+9
| | | | | | docker.types Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1308 from docker/docker_clientJoffrey F2016-11-301-1/+1
|\ | | | | Rename Client -> DockerClient
| * Rename Client -> DockerClientdocker_clientJoffrey F2016-11-281-1/+1
| | | | | | | | | | | | | | Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
* | Remove support for host_config in Client.startJoffrey F2016-11-281-66/+15
|/ | | | | | | Any additional arguments passed to start will raise a DeprecatedMethod (DockerException) exception. Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1186 from bfirsh/two-point-ohJoffrey F2016-11-221-0/+794
|\ | | | | A new user-focused API
| * Add docstrings to low-level APIBen Firshman2016-11-221-0/+794
| | | | | | | | 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 support for restart policy updateMaxime Feron2016-09-281-1/+9
| | | | Signed-off-by: Maxime Feron <maxime.feron@corp.ovh.com>
* Read from socket after sending TCP upgrade headers.Joffrey F2016-07-131-3/+12
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add hijack hints for attach api callsDavid Gageot2016-07-131-2/+8
| | | | Signed-off-by: David Gageot <david@gageot.net>
* 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>
* support new Py3.5 Enum signalsThomas Grainger2016-05-191-1/+1
| | | | Signed-off-by: Thomas Grainger <tom.grainger@procensus.com>
* 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 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>
* Implement support for network-scoped aliasesAanand Prasad2016-01-141-2/+9
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* added stop_signal to create container configJonathan Stewmon2015-12-031-2/+3
| | | | Signed-off-by: Jonathan Stewmon <jstewmon@rmn.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-051-0/+30
| |\ \ | | |/ | | | | | | 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>
* | put/get archive implementationJoffrey F2015-10-081-0/+30
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.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-161-30/+24
| | | | | | | | | | 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>
* Split different APIs into several mixins for clarity / easier maintenanceJoffrey F2015-09-111-0/+352
Signed-off-by: Joffrey F <joffrey@docker.com>