Commit Graph

260 Commits

Author SHA1 Message Date
Joffrey F 7167189486 Bump version + Update Changelog
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-09 16:55:10 -07:00
Joffrey F 3eb93f6662 Bump version
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-08 12:00:25 -07:00
Joffrey F 6552076856 Add support for force disconnect
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-31 18:44:36 -07:00
Joffrey F a665dfb375 Add support for labels and enable_ipv6 in create_network
Tests + docs

Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-31 18:26:16 -07:00
Joffrey F 902c7a76cc Docs and tests for pids_limit.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-23 17:05:08 -07:00
Joffrey F 797f1edc20 Merge branch 'master' of https://github.com/srikalyan/docker-py into srikalyan-master 2016-08-23 15:16:15 -07:00
Joffrey F 0e4314a872 Merge branch 'jp-cpushares' of https://github.com/joshpurvis/docker-py into joshpurvis-jp-cpushares 2016-08-23 15:12:30 -07:00
Joffrey F 0acdd19665 Merge pull request #1131 from Knetic/dnsopts
Implemented dns_opt support (from api 1.21)
2016-08-23 15:04:25 -07:00
Joffrey F 775b581c04 Private images support in create_service / update_service
Refactor auth header computation

Add tasks methods and documentation.

Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-23 14:52:07 -07:00
Joffrey F 7d5a1eeb7a Add services documentation
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-22 17:45:10 -07:00
Joffrey F 8e97cb7857 Services API documentation (WIP)
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-19 16:51:39 -07:00
Joffrey F 97094e4ea3 New docker.types subpackage containing advanced config dictionary types
Tests and docs updated to match
docker.utils.types has been moved to docker.types

Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-19 16:51:13 -07:00
Josh Purvis 7d147c8ca1 Move cpu_shares and cpuset_cpu to HostConfig when API >= 1.18
Signed-off-by: Josh Purvis <joshua.purvis@gmail.com>
2016-08-15 16:33:58 -04:00
Joffrey F a75553b3ca Add `nodes` and `inspect_node` methods
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-11 17:47:02 -07:00
George Lester 93b4b4134e Implemented dns_opt support (from api 1.21)
Signed-off-by: George Lester <glester491@gmail.com>
2016-08-07 14:23:22 -07:00
Joffrey F e1774c4c5b Reference swarm methods in api.md file.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-04 17:05:25 -07:00
Joffrey F 0f70b6a38b Add support for custom name in SwarmSpec
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-04 16:48:21 -07:00
Joffrey F fdfe582b76 Update Swarm API docs
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-04 15:12:43 -07:00
Joffrey F df31f9a8ce Update Swarm documentation
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-03 18:00:52 -07:00
minzhang 44868fa0fa Added support for docker swarm api version 1.24.
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>
2016-08-03 16:57:44 -07:00
Jari Takkala dec29e1c10 Add support for sysctl when creating container
Closes #1144

Signed-off-by: Jari Takkala <jtakkala@gmail.com>
2016-08-01 23:43:52 +01:00
Joffrey F a4a27d80f0 Merge branch 'release' 2016-07-26 15:46:51 -07:00
Joffrey F 5b1e556474 Bump to 1.9.0
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-07-26 12:11:32 -07:00
Ben Firshman ae86949188 Set custom user agent on client
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-07-26 11:57:21 -07:00
Keerthan Reddy Mala 9b63bed6a0
Add optional auth config to docker push
Signed-off-by: Keerthan Reddy Mala <kmala@deis.com>
2016-07-22 10:04:31 -06:00
Ben Firshman bd73225e14
Set custom user agent on client
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-07-20 15:04:54 -07:00
Tomas Tomecek 8f8a3d0ed2 volumes,create: support adding labels
Fixes #1102

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2016-07-13 08:41:45 +02:00
Faylixe c8c6f0073e Removed superfluous sentence
Signed-off-by: Faylixe <felix.voituret@gmail.com>
Signed-off-by: Félix Voituret <felix.voituret@gmail.com>
2016-07-08 21:46:02 +02:00
Faylixe 6d347cd894 Update api.md
Added ``buildargs`` parameter to ``build`` documentation

Signed-off-by: Faylixe <felix.voituret@gmail.com>
2016-07-08 10:44:49 +02:00
Srikalyan Swayampakula b5d3556bce Added support for user namespace.
Signed-off-by: Srikalyan Swayampakula <srikalyansswayam@gmail.com>
2016-06-30 15:25:17 -07:00
Joffrey F 0de366da3d Add support for link-local IPs in endpoint config
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-24 15:17:58 -07:00
Joffrey F a2160145cf 1.9.0 RC1
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-16 12:46:46 -07:00
Joffrey F 538a1db9dd Merge pull request #1066 from yunzhu-li/blkio-control
Add support for Block IO constraints in HostConfig
2016-06-15 14:26:49 -07:00
Joffrey F 080b4711f2 Merge pull request #1083 from docker/1042-ip-networking-config
Support ipv4_address and ipv6_address in create_endpoint_config
2016-06-13 18:02:58 -07:00
Joffrey F d991db5b45 Expand on the 1-network limit in create_container
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-13 17:58:10 -07:00
Joffrey F fc4bfde0d6 Unify endpoint config creation when using connect_container_to_network
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-13 17:58:10 -07:00
Joffrey F b6fa986293 Add ipv[46]_address params to create_endpoint_config.
Update networks documentation with exhaustive API docs

Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-13 17:58:10 -07:00
Joffrey F b050544237 Fix param name for inspect_image in API docs
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-09 13:01:29 -07:00
Adam Chainz 7f255cd295 Convert readthedocs links for their .org -> .io migration for hosted projects
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.

Signed-off-by: Adam Chainz <adam@adamj.eu>
2016-06-08 03:48:04 +01:00
yunzhu-li 896d36ea1d
Add support for Block IO constraints in HostConfig
This adds support for Block IO constraint options:
    - blkio-weight
    - blkio-weight-device
    - device-read-bps
    - device-write-bps
    - device-read-iops
    - device-write-iops

Signed-off-by: yunzhu-li <contact@yunzhu.li>
2016-06-05 23:30:44 -04:00
Thomas Grainger 7e24304934
update docs to py3.5
Signed-off-by: Thomas Grainger <tom.grainger@procensus.com>
2016-05-19 18:04:46 +01:00
Jonathan Giannuzzi 98b41fee3c Add support for creating internal networks
Signed-off-by: Jonathan Giannuzzi <jonathan@giannuzzi.be>
2016-05-18 16:25:43 +02:00
Joffrey F d6e70e2c40 Update ChangeLog and version.py (1.8.1)
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-04-28 17:15:20 -07:00
Joir-dan Gumbs 1c8ce07785 Added link to docker ps documentation
Signed-off-by: Joir-dan Gumbs <jdagumbs@gmail.com>
2016-04-19 23:19:55 -07:00
Joir-dan Gumbs 923536a168 rebased documentation changes against master fork
Signed-off-by: Joir-dan Gumbs <jdagumbs@gmail.com>
2016-04-18 21:39:55 -07:00
Joffrey F 267bd34426 Bump version to 1.8.0
Add RC bugfixes to the changelog.

Signed-off-by: Joffrey F <joffrey@docker.com>
2016-04-05 16:21:16 -07:00
Joir-dan Gumbs d6b42c480e Added extra filtering options to containers command in ClientAPI
Signed-off-by: Joir-dan Gumbs <jdagumbs@gmail.com>
Signed-off-by: Joir-dan Gumbs <jgumbs@us.ibm.com>
2016-03-30 22:25:20 -07:00
Aanand Prasad 449e037de3 Improve port binding docs
- Reword a sentence that was wrong ("container" and "host" were the
  wrong way round)

- Put the multiple-ports example before the multiple-IPs example

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-30 11:23:07 +01:00
tomleb 5234784760 Specify default value of stop's timeout
Signed-off-by: Tom Lebreux <tomlebreux@hotmail.com>
2016-03-23 19:37:54 -04:00
Joffrey F 84ed0ae2ef Update ChangeLog
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-23 13:14:34 -07:00
Joffrey F 9505b3e8b5 Merge branch 'master' of https://github.com/dimaspivak/docker-py into dimaspivak-master 2016-03-23 12:04:09 -07:00
Joffrey F 62d6aa59ca Update mkdocs.yml to reference new Machine page.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-22 17:22:28 -07:00
Joffrey F c3f76e6e8f Merge branch 'from_env' of https://github.com/bfirsh/docker-py into bfirsh-from_env 2016-03-22 17:09:24 -07:00
Aditya Marella 7a0e19766b Support OomScoreAdj in host configuration
Signed-off-by: Aditya Marella <aditya.marella@gmail.com>
2016-03-22 10:54:59 -07:00
Dima Spivak 99b6ec1180 Add support for changes param to ContainerApiMixin.commit
docker commit --changes was added to Docker in 1.6.0.

Signed-off-by: Dima Spivak <dima@spivak.ch>
2016-03-21 11:37:14 -07:00
Aanand Prasad a054509269 Reword tmpfs documentation
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-16 15:07:53 +00:00
Jan Losinski 88ef5f3630 Add documentation for the Tmpfs Hostconfig option.
Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
2016-03-16 14:47:40 +00:00
Ben Firshman 8991ba7cce Add docker.from_env() shortcut
A much neater way of getting started with docker-py.

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-03-15 11:24:25 -07:00
Tim Ski d7af8d79a4 Updated stat networks print output Signed-off-by: Tim Marcinowski <marshyski@gmail.com> 2016-03-02 11:34:36 -05:00
Joffrey F 81d8caaf36 Merge pull request #916 from docker/container_update_feature
Support for container limits update
2016-02-24 18:00:06 -08:00
Joffrey F cdf6dc8c3c Merge pull request #942 from seguins/934-separate-stream-follow-logs
Separate params stream and follow for logs.
2016-02-24 16:04:42 -08:00
Joffrey F 6f6d0890a4 Documentation for Client.update_container method
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-23 16:18:36 -08:00
Joffrey F 287ab93399 Prepare 1.7.2 release
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-23 15:02:11 -08:00
Joffrey F 498c7d4837 Update changelog for 1.7.1
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-17 11:00:19 -08:00
Stéphane Seguin 71fafd3209 Separate params stream and follow for logs.
Closes #934

Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
2016-02-16 18:51:55 +01:00
Spencer Rinehart fca622cad7 Add support for shm_size.
--shm-size was added to Docker in 1.10 via docker/docker#16168.  See
docker/compose#2823 for more details.

Signed-off-by: Spencer Rinehart <anubis@overthemonkey.com>
2016-02-04 12:33:05 -06:00
Joffrey F a11dc87bd3 Bump to stable version
Update ChangeLog

Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-04 09:39:02 -08:00
Joffrey F 41d049a11c Advanced documentation for port bindings
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-28 17:55:36 -08:00
Joffrey F f9b04c1026 Improve host devices support
Add unit tests for utils.parse_devices
Rewrite documentation
Support dict and string format for device declaration

Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-18 11:38:32 -08:00
Ryan Belgrave 67a29441c4 allow custom ipam options when creating networks
Signed-off-by: Ryan Belgrave <rmb1993@gmail.com>
2016-01-04 18:57:11 -05:00
Joffrey F ee0788e4ad Merge pull request #882 from docker/881-hostconfig_doc
Add cpu_quota and cpu_period to the HostConfig documentation
2016-01-04 14:52:23 -08:00
Josh Purvis d388abe3b3 Add docs for argument when retrieving container logs
Signed-off-by: Josh Purvis <jpurvis@kwantera.com>
2015-12-23 11:41:59 -05:00
Joffrey F 7724e36e1b Add cpu_quota and cpu_period to the HostConfig documentation
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-12-22 17:43:03 -08:00
Sumit Sahrawat 64fdde5ef9 Fix #869: Add docs for network api
Signed-off-by: Sumit Sahrawat <sumit.sahrawat.apm13@iitbhu.ac.in>
2015-12-10 10:29:11 +05:30
Sumit Sahrawat 2981d013a5 Fix remove_volume return value
Signed-off-by: Sumit Sahrawat <sumit.sahrawat.apm13@iitbhu.ac.in>
2015-12-10 10:29:11 +05:30
Jonathan Stewmon 31b1b53f7f added stop_signal to create container config
Signed-off-by: Jonathan Stewmon <jstewmon@rmn.com>
2015-12-03 14:31:51 -06:00
Daniel Nephin 95ea5afdb1 Merge pull request #864 from ticosax/document-network_mode
[doc] network_mode can also take the name of a network as value.
2015-12-01 11:11:38 -08:00
Nicolas Delaby 497442169c network_mode can also take the name of a network as value.
Signed-off-by: Nicolas Delaby <nicolas.delaby@lock8.me>
2015-12-01 10:27:30 +01:00
Joffrey F a0c0972267 Update Changelog with one last bugfix
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-30 12:22:01 -08:00
Joffrey F aec48133a8 Update Changelog
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-23 15:30:14 -08:00
Joffrey F dfcc1d87bf Merge branch 'oom-kill-disable-pr' of https://github.com/schu/docker-py into schu-oom-kill-disable-pr 2015-11-18 14:35:54 -08:00
Daniel Nephin 0284eadaff Merge pull request #805 from sourcelair/enhancement/stats-no-stream
Add support for non-stream stats of containers
2015-11-17 10:47:28 -05:00
Daniel Nephin 4e441b2a6b Merge pull request #834 from lots0logs/814-host-config-mem-swap
Add support for MemorySwappiness to client.create_host_config()
2015-11-16 11:37:15 -05:00
Michael Schubert 8924319631 create_host_config: allow setting oom_kill_disable
Signed-off-by: Michael Schubert <schu@schu.io>
2015-11-10 11:08:24 +01:00
Dustin Falgout 64fc383f2c Update hostconfig.md
Signed-off-by: Dustin Falgout <dustin@falgout.us>
2015-11-09 02:41:15 -06:00
Viacheslav Boiko 3330569772
Merge upstream branch 'master' into feature/logs_since
Signed-off-by: Viacheslav Boiko <v.e.boyko@gmail.com>
2015-11-05 11:56:06 +01:00
Dustin Falgout c07dd53a2a Incorporates feedback from and closes #814
Signed-off-by: Dustin Falgout <dustin@falgout.us>
2015-11-05 02:20:53 -06:00
Antonis Kalipetis 019a365a02 Enhance docs for stats method
Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
2015-10-22 10:23:53 +00:00
Alasdair Nicol 0c2aaac3d5 Tidied up code examples in docs
* Use `cli = Client` everywhere
 * Use Client.create_host_config method
 * Added missing '>'s

Signed-off-by: Alasdair Nicol <alasdair@thenicols.net>
2015-10-14 22:53:21 +01:00
Joffrey F 5d95f24264 Add devices param to the hostconfig documentation
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-08 17:28:43 -07:00
Joffrey F c887147d31 Update changelog and bump version to 1.5.0
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-08 14:58:54 -07:00
Joffrey F f479720d51 Merge branch 'archive_endpoint' 2015-10-08 14:00:07 -07:00
Joffrey F 4845dae0c0 put/get archive implementation
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-08 13:59:39 -07:00
Joffrey F 28627a3af8 Docs: Remove float from valid cpu_shares types
Fixes #775

Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-08 12:22:22 -07:00
Viacheslav Boiko 4a2db828b4 Support the 'since' option in the 'containers/<id>/logs' endpoint
Signed-off-by: Viacheslav Boiko <v.e.boyko@gmail.com>
2015-10-02 06:19:06 +00:00
Pierre Fersing 2d4a71df2e Allow to specify ps_args when listing processes
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2015-09-25 16:58:27 +02:00
Joffrey F 4475310eea Merge pull request #777 from rutsky/patch-2
specify default value of stream parameter of exec_start()
2015-09-22 15:02:24 -07:00
Joffrey F dd36fae131 Merge pull request #772 from rutsky/patch-1
add missing dots at ends of command descriptions
2015-09-18 17:12:52 -07:00
Vladimir Rutsky 46dd94d1f3 fix network_mode 'none' value
Signed-off-by: Vladimir Rutsky <vladimir@rutsky.org>
2015-09-18 02:58:04 +03:00
Vladimir Rutsky 74a3242b80 specify default value of stream parameter of exec_start()
Signed-off-by: Vladimir Rutsky <vladimir@rutsky.org>
2015-09-18 02:20:09 +03:00