Commit Graph

3090 Commits

Author SHA1 Message Date
Joffrey F eee9cbbf08 Add support for new types and options to docker.types.Mount
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-07 15:18:26 -08:00
Jan Losinski 8742609391 Fix simple documentation copy/paste error.
Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
2017-11-07 15:18:26 -08:00
Joffrey F f94fae3aa8 Remove superfluous version validation
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-07 15:18:26 -08:00
Steve Clark 1d77ef9e53 Adding swarm id_attribute to match docker output
Swarm id is returned in a attribute with the key ID. The swarm model was using the default behaviour and looking for Id.
Signed-off-by: Steve Clark <steve@cobe.io>
2017-11-07 15:18:26 -08:00
brett55 ba66b09e2b Fix docs, incorrect param name
Signed-off-by: brett55 <bjcull2@gmail.com>
2017-11-07 15:18:26 -08:00
Joffrey F 7107e265b1 Do not interrupt streaming when encountering 0-length frames
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-07 15:18:26 -08:00
Joffrey F a49d73e9df Fix prune_images docstring
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-07 15:18:26 -08:00
Joffrey F 303b303855 Use unambiguous advertise-addr when initializing a swarm
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-07 15:18:26 -08:00
Joffrey F f470955a77 Shift test matrix forward
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-07 15:18:26 -08:00
Joffrey F f238fe5554 Style fixes. Copied docs to APIClient as well
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-06 17:10:42 -08:00
Martin Monperrus 05f40f0381 explain the socket parameter of exec_run
Signed-off-by: Martin Monperrus <martin.monperrus@gnieh.org>
2017-11-06 17:10:42 -08:00
Joffrey F 1a4b181344 Add support for insert_defaults in inspect_service
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-06 16:30:02 -08:00
Joffrey F 11a260225c Update SwarmSpec to include new parameters
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-03 16:01:33 -07:00
Joffrey F 1ce93ac6e7 Add support for scope filter in inspect_network
Fix missing scope implementation in create_network

Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-02 16:10:43 -07:00
Joffrey F ca7a6132a4 Oops
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-02 14:10:13 -07:00
Joffrey F d5094a8126 Fix build tests to not rely on internet connectivity
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-02 14:06:05 -07:00
Joffrey F 1359eb1100 Disable buffering based on presence of Connection Upgrade headers
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-02 13:02:32 -07:00
Chris Harris f8b5bc62df Prevent data loss when attaching to container
The use of buffering within httplib.HTTPResponse can cause data
to be lost. socket.makefile() is called without a bufsize, which
causes a buffer to be used when recieving data. The attach
methods do a HTTP upgrade to tcp before the raw socket is using
to stream data from the container. The problem is that if the
container starts stream data while httplib/http.client is reading
the response to the attach request part of the data ends will end
up in the buffer of fileobject created within the HTTPResponse
object. This data is lost as after the attach request data is
read directly from the raw socket.

Signed-off-by: Chris Harris <chris.harris@kitware.com>
2017-11-02 13:02:32 -07:00
timvisee ff86324c4f
Require at least requests v2.14.2 to fix chardet
Signed-off-by: timvisee <timvisee@gmail.com>
2017-11-02 14:30:18 +01:00
Joffrey F b99f4f2c69 Doc fixes
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-01 18:56:41 -07:00
Joffrey F c0a075810e Add support for secret driver in create_secret
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-11-01 18:56:41 -07:00
Alessandro Baldo 76b138a0a1 Improve docs for service list filters
- add "label" and "mode" to the list of available filter keys in the high-level service API
- add "label" and "mode" to the list of available filter keys in the low-level service API
- add integration tests

Signed-off-by: Alessandro Baldo <git@baldoalessandro.net>
2017-11-01 15:18:05 -07:00
Joffrey F bb148380e1 More ContainerSpec tests
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-26 23:06:09 -07:00
Joffrey F 856414bf85 Add support for configs management
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-26 23:06:09 -07:00
Joffrey F 601d6be526 Add support for new ContainerSpec parameters
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-26 23:06:09 -07:00
Erik Johnson 10ea65f5ab Fix indentation in docstring
The incorrect indentation causes improper formatting when the docs
are published.

Signed-off-by: Erik Johnson <palehose@gmail.com>
2017-10-26 11:47:43 -07:00
Joffrey F 378bd76377 Update test engine versions in Jenkinsfile
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-25 17:05:09 -07:00
Joffrey F 93f2ab1530 Add support for extra_hosts option in build
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-25 15:09:39 -07:00
Joffrey F 0d21b5b254 Pin flake8 version
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-24 18:59:01 -07:00
Joffrey F 5552deed86 Add support for mounts in HostConfig
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-24 18:59:01 -07:00
Joffrey F 877fc817d7 Add support for new types and options to docker.types.Mount
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-24 18:59:01 -07:00
Jan Losinski 8cb5b52c3f Fix simple documentation copy/paste error.
Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
2017-10-16 18:23:50 -07:00
Joffrey F ec9356d3a0 Remove superfluous version validation
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-02 12:50:04 -07:00
Steve Clark ca435af52e Adding swarm id_attribute to match docker output
Swarm id is returned in a attribute with the key ID. The swarm model was using the default behaviour and looking for Id.
Signed-off-by: Steve Clark <steve@cobe.io>
2017-09-21 22:40:10 -07:00
brett55 be3900b806 Fix docs, incorrect param name
Signed-off-by: brett55 <bjcull2@gmail.com>
2017-09-21 22:34:58 -07:00
Hongbin Lu 35ceefe1f1 Return Image objects on image.load
In before, image.load returns what Docker API returns, which is
a text stream. This commits propose an improvement for returning
more useful information, which is a list of Image objects being
loaded.

Signed-off-by: Hongbin Lu <hongbin.lu@huawei.com>
2017-09-10 14:43:33 -04:00
Joffrey F 37fbc8b4fd Do not interrupt streaming when encountering 0-length frames
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-31 16:41:15 -07:00
Joffrey F 2671d87843 Fix prune_images docstring
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-31 16:09:52 -07:00
Joffrey F 3c9c8b181c Use unambiguous advertise-addr when initializing a swarm
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-31 13:17:12 -07:00
Maxime Belanger 7fa2cb7be3 Add join_swarm default listen address
Since the docker CLI adds a default listen address (0.0.0.0:2377)
when joining a node to the swarm, the docker-py api will support
the same behavior to easy configuration.

Signed-off-by: Maxime Belanger <maxime.b.belanger@gmail.com>
2017-08-29 08:38:16 -04:00
Joffrey F e9fe077681 Bump 2.5.1
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-22 17:00:11 -07:00
Joffrey F 0c2b4e4d3a Always send attach request as streaming
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-22 17:00:11 -07:00
Veli-Matti Lintu fc6773d673 Commit d798afca made changes for the handling of '**' patterns in
.dockerignore. This causes an IndexError with patterns ending
with '**', e.g. 'subdir/**'. This adds a missing boundary check
before checking for trailing '/'.

Signed-off-by: Veli-Matti Lintu <veli-matti.lintu@nosto.com>
2017-08-22 17:00:11 -07:00
Joffrey F ba7580d6b9 Bump 2.6.0-dev
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-22 17:00:11 -07:00
Joffrey F 89195146ad Always send attach request as streaming
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-21 15:56:19 -07:00
Veli-Matti Lintu 3df0653493 Commit d798afca made changes for the handling of '**' patterns in
.dockerignore. This causes an IndexError with patterns ending
with '**', e.g. 'subdir/**'. This adds a missing boundary check
before checking for trailing '/'.

Signed-off-by: Veli-Matti Lintu <veli-matti.lintu@nosto.com>
2017-08-21 12:01:50 -07:00
Joffrey F 477f236c71 Bump 2.6.0-dev
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:52:13 -07:00
Joffrey F c55a330090 Merge branch 'release' of github.com:docker/docker-py
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:51:49 -07:00
Joffrey F 8d14709c18 Changelog typo
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:50:20 -07:00
Joffrey F 9b6ff333ac Bump 2.5.0
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00