Commit Graph

2246 Commits

Author SHA1 Message Date
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 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
Joffrey F 7d559a957c Update default API version
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Joffrey F 921aba107b Update test versions
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Joffrey F d9df2a8b75 Fix handling of non-multiplexed (TTY) streams over upgraded sockets
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Gabriel Féron a6065df64d Add support for the `squash` flag when building
Also added a test that compares the number of layers in the default mode, and with the new flag

Signed-off-by: Gabriel Féron <feron.gabriel@gmail.com>
2017-08-17 13:38:40 -07:00
Joffrey F d5c4ce203a Use better version comparison function
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
David Steines 6b59dc6271 Allow detach and remove for api version >= 1.25 and use auto_remove when both are set. Continue raising an exception for api versions <1.25.
Signed-off-by: David Steines <d.steines@gmail.com>
2017-08-17 13:38:40 -07:00
adrianliaw 2a6926b5ab Use collection's get method inside ImageCollection's list method
Signed-off-by: Adrian Liaw <adrianliaw2000@gmail.com>
2017-08-17 13:38:40 -07:00
Joffrey F b4802ea126 Handle untyped ContainerSpec dict in _check_api_features
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Joffrey F d49c136d04 Daemon expects full URL of hub in auth config dict in build payload
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Ying b54c76c3c1 Upgrade tox and virtualenv in appveyor to make sure we have the latest pip.
Signed-off-by: Ying <ying.li@docker.com>
2017-08-17 13:38:40 -07:00
cyli 380914aaaa If we're pinning exact versions of things for requirements.txt, pin
all dependencies of dependencies as well so we can get a consistent build.

Signed-off-by: cyli <cyli@twistedmatrix.com>
2017-08-17 13:38:40 -07:00
cyli 0494c4f262 Require "requests[security]" if the `[tls]` option is selected, which also installs:
pyOpenSSL, cryptography, idna

and installs cryptography's version of openssl in Mac OS (which by default has an
ancient version of openssl that doesn't support TLS 1.2).

Signed-off-by: cyli <cyli@twistedmatrix.com>
2017-08-17 13:38:40 -07:00
Joffrey F 7f5739dc02 Leading slash in .dockerignore should be ignored
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Joffrey F 7139e2d8f1 Return generator for output of load_image endpoint
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Cecile Tonglet 9e793806ff Return the result of the API when using remove_image and load_image
Those calls return result that can be used by the developers.

Signed-off-by: Cecile Tonglet <cecile.tonglet@gmail.com>
2017-08-17 13:38:40 -07:00
Joffrey F f3374959b7 Improve ContainerError message compute
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Artem Bolshakov 62fda980e4 client.containers.run returns None if none of json-file or journald logging drivers used
Signed-off-by: Artem Bolshakov <either.free@gmail.com>
2017-08-17 13:38:40 -07:00
Andreas Backx 48377d52e9 Added wait to the Container class documentation.
The container class documentation did not automatically document the `Container.wait` method.

Signed-off-by: Andreas Backx <andreas@backx.org>
2017-08-17 13:38:40 -07:00
Erik Johnson f7e7a8564e Fix domainname documentation in create_container function
It looks like this was probably originally copypasta'ed from dns_search
and not edited afterward.

Signed-off-by: Erik Johnson <palehose@gmail.com>
2017-08-17 13:38:40 -07:00
Joffrey F bf15e27d6d Temporarily - do not run py33 tests on travis
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Jakub Goszczurny bf9d06db25 Generating regexp from .dockerignore file in a similar way as docker-ce.
Signed-off-by: Jakub Goszczurny <szczurmys@o2.pl>
2017-08-17 13:38:40 -07:00
Dima Spivak 48b5c07c3a client.networks.create check_duplicates docs not reflective of behavior
Fixes #1693

Signed-off-by: Dima Spivak <dima@spivak.ch>
2017-08-17 13:38:40 -07:00
Brandon Jackson 9abcaccb89 By not specifying a specific tag, the example would download every Ubuntu tag that exists.
This oversight caused my machine to run out of disk space holding all the image diffs.

Signed-off-by: Brandon Jackson <usbrandon@gmail.com>
2017-08-17 13:38:40 -07:00
Matthew Berry a23cd3d8e8 Fix #1673 check resource error in container network API
Container network functions checked 'image' as resource ID and not
'container'.  This caused a traceback when using container as named
argument.

Signed-off-by: Matthew Berry <mtberry89@gmail.com>
2017-08-17 13:38:40 -07:00
Joffrey F e0c7e4d60e dev version
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Joffrey F 2b128077c1 Shift test matrix forward
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Joffrey F 13b9349216 Fix handling of non-multiplexed (TTY) streams over upgraded sockets
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 12:02:59 -07:00
Joffrey F 6f6c29ce36 Merge branch 'gferon-experimental-flags'
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-15 18:10:11 -07:00
Gabriel Féron 76eb0298c6 Add support for the `squash` flag when building
Also added a test that compares the number of layers in the default mode, and with the new flag

Signed-off-by: Gabriel Féron <feron.gabriel@gmail.com>
2017-08-15 18:09:39 -07:00
Joffrey F fe2e120705 Merge branch 'master' of github.com:docker/docker-py 2017-08-15 17:42:51 -07:00
Joffrey F 67b58b81e0 Merge branch 'davidsteines-1477_detach_and_remove_together' 2017-08-15 17:42:16 -07:00
Joffrey F b78fa6405a Use better version comparison function
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-15 17:40:07 -07:00
David Steines e17a545aa5 Allow detach and remove for api version >= 1.25 and use auto_remove when both are set. Continue raising an exception for api versions <1.25.
Signed-off-by: David Steines <d.steines@gmail.com>
2017-08-15 17:38:34 -07:00
adrianliaw 05e5db5853 Use collection's get method inside ImageCollection's list method
Signed-off-by: Adrian Liaw <adrianliaw2000@gmail.com>
2017-08-15 17:37:04 -07:00
Joffrey F 18acd569a1 Handle untyped ContainerSpec dict in _check_api_features
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-15 17:22:25 -07:00
Joffrey F e9fab1432b Daemon expects full URL of hub in auth config dict in build payload
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-15 15:59:33 -07:00
Ying 35f29d08d7 Upgrade tox and virtualenv in appveyor to make sure we have the latest pip.
Signed-off-by: Ying <ying.li@docker.com>
2017-08-15 15:45:51 -07:00
cyli c163375591 If we're pinning exact versions of things for requirements.txt, pin
all dependencies of dependencies as well so we can get a consistent build.

Signed-off-by: cyli <cyli@twistedmatrix.com>
2017-08-15 15:45:51 -07:00
cyli 3b95da3ea4 Require "requests[security]" if the `[tls]` option is selected, which also installs:
pyOpenSSL, cryptography, idna

and installs cryptography's version of openssl in Mac OS (which by default has an
ancient version of openssl that doesn't support TLS 1.2).

Signed-off-by: cyli <cyli@twistedmatrix.com>
2017-08-15 15:45:51 -07:00
Joffrey F 92a2e48e17 Leading slash in .dockerignore should be ignored
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-15 15:40:16 -07:00
Joffrey F 5e4a69bbda Return generator for output of load_image endpoint
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-15 14:58:29 -07:00
Cecile Tonglet 56dc7db069 Return the result of the API when using remove_image and load_image
Those calls return result that can be used by the developers.

Signed-off-by: Cecile Tonglet <cecile.tonglet@gmail.com>
2017-08-15 14:43:32 -07:00
Joffrey F 369168e29c Merge branch 'bolshakov-bugfix/run-container-with-syslog-driver'
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-07 12:06:42 -07:00