Commit Graph

2503 Commits

Author SHA1 Message Date
Joffrey F 631cc3c121 ImageCollection.build now also returns build logs along with the built image reference
BuildError.build_logs has a copy of the logs generator

Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 15:59:46 -08:00
Joffrey F deb8222d69
Merge pull request #1873 from docker/hongbin-image-load
Return Image objects in ImageCollection.load
2018-01-26 14:45:09 -08:00
Joffrey F 84d454551c
Merge pull request #1872 from docker/hnq90-add_exit_code_to_exec_run
Also return exit code in exec_run
2018-01-26 14:35:45 -08:00
Joffrey F 8b5a52ae0c Error handling in ImageCollection.load
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 14:34:20 -08:00
Joffrey F 601c5a41d2 Merge branch 'image-load' of https://github.com/hongbin/docker-py into hongbin-image-load
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 14:25:11 -08:00
Joffrey F 6e6eaece81 Return tuple instead of dict in exec_run
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 14:21:23 -08:00
Joffrey F b0cc4b5520 Merge branch 'add_exit_code_to_exec_run' of https://github.com/hnq90/docker-py into hnq90-add_exit_code_to_exec_run 2018-01-26 14:13:15 -08:00
Joffrey F 04eb7a2a99
Merge pull request #1867 from docker/bump_api_version_1.35
Bump default API version to 1.35
2018-01-26 14:11:07 -08:00
Joffrey F abd60aedc7 Bump default API version to 1.35
Add ContainerSpec.isolation support
Add until support in logs
Add condition support in wait
Add workdir support in exec_create

Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 13:56:01 -08:00
Joffrey F 9538258371
Merge pull request #1871 from docker/fix-appveyor
Fix appveyor tests
2018-01-26 13:45:10 -08:00
Joffrey F a5490ad0be Fix appveyor tests
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 13:44:31 -08:00
Joffrey F ba46201ca6
Merge pull request #1869 from mccalluc/patch-1
Replace missing "^" with "e"
2018-01-26 11:54:22 -08:00
mccalluc 24bd5d8e53
Replace missing "^" with "e"
Signed-off-by: Chuck McCallum <mccallucc+github@gmail.com>
2018-01-26 10:44:15 -05:00
Joffrey F 9e2148dcc4
Merge pull request #1865 from docker/dperny-change-tls-default
Change default TLS version
2018-01-25 13:08:12 -08:00
Joffrey F a15a1d2fdd
Merge pull request #1856 from docker/1855-platform-option
Add support for experimental platform flag in build and pull
2018-01-24 18:12:50 -08:00
Joffrey F f85f31a91a
Merge pull request #1849 from johannespostler/1516-endport-port-documentation
Switch ports in documentation for EndpointSpec (#1516)
2018-01-24 18:09:43 -08:00
Joffrey F 4590e2a816
Merge pull request #1846 from feliperuhland/issue-1734-scale-method
Added scale method to the Service model.
2018-01-24 18:08:35 -08:00
Joffrey F bab7ca3cde Don't use PROTOCOL_TLSv1_2 directly to avoid ImportErrors
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-24 18:05:10 -08:00
Drew Erny 500286d51e Change default TLS version
Detects if python has an up-to-date version of OpenSSL that supports
TLSv1.2. If it does, choose that as the default TLS version, instead of
TLSv1. The Docker Engine and the majority of other Docker API servers
should suppot TLSv1.2, and if they do not, the user can manually set a
different (lower) version.

Signed-off-by: Drew Erny <drew.erny@docker.com>
2018-01-24 18:05:10 -08:00
Joffrey F 766d890558
Merge pull request #1866 from docker/jenkins-update
Shift test matrix forward
2018-01-24 18:04:42 -08:00
Joffrey F ccd79323da Shift test matrix forward
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-24 11:39:43 -08:00
Joffrey F f95b958429 Add support for experimental platform flag in build and pull
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-23 16:59:09 -08:00
Joffrey F bc8ada2f74
Merge pull request #1863 from docker/python3.6
Python 3.6 support
2018-01-22 18:28:18 -08:00
Joffrey F 0acef5f6d2 Add Python 3.6 testing
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-22 18:08:01 -08:00
Joffrey F a28b9ffd85
Merge pull request #1859 from rycus86/service_network_regression
Fix service network regression on API < 1.25
2018-01-12 14:49:19 -08:00
Viktor Adam e75a03fd6d Fix regression on API < 1.25
Signed-off-by: Viktor Adam <rycus86@gmail.com>
2018-01-12 22:18:53 +00:00
Joffrey F bf5e7702df
Merge pull request #1853 from docker/1852-dockerignore
Ignore dockerignore lines that contain only whitespace
2018-01-03 13:37:39 -08:00
Joffrey F bf06a361e2 Ignore dockerignore lines that contain only whitespace
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-03 12:16:21 -08:00
Felipe Ruhland 663c6089e9 Fix test to make sure the initial mode is replicated
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
2018-01-03 00:21:56 -02:00
Johannes Postler 1bb4155dcb Switch ports in documentation for EndpointSpec
Signed-off-by: Johannes Postler <johannes.postler@uibk.ac.at>
2017-12-27 17:01:49 +01:00
Felipe Ruhland 0e0a852680 Ensure that global containers are not scaled
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
2017-12-26 18:30:28 -02:00
Felipe Ruhland edb9e3c2ae Added scale method to the Service model.
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
2017-12-21 23:13:18 -02:00
Joffrey F 190d95c61c Merge branch 'qazbnm456-master' 2017-12-19 14:38:55 -08:00
Joffrey F 758344fdf4 Formatting
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-12-19 14:38:38 -08:00
Joffrey F 0a55ff3a41 Merge branch 'master' of https://github.com/qazbnm456/docker-py into qazbnm456-master 2017-12-19 14:37:44 -08:00
Joffrey F 9fc45f108a 2.8.0 dev
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-12-19 14:37:17 -08:00
Joffrey F 518655287a Merge branch 'release' 2017-12-19 14:36:48 -08:00
Joffrey F 5bed7b8f0d
Merge pull request #1838 from docker/2.7.0-release
2.7.0 release
2017-12-19 14:25:53 -08:00
Joffrey F 228764ac87
Merge pull request #1840 from docker/1813-autoremove-error
Don't attempt to retrieve container's stderr if `auto_remove` was set
2017-12-19 14:19:37 -08:00
Joffrey F 598f16771c Don't attempt to retrieve container's stderr if `auto_remove` was set
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-12-19 13:51:47 -08:00
Joffrey F 2250fa2ebd Don't attempt to retrieve container's stderr if `auto_remove` was set
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-12-19 13:50:32 -08:00
Joffrey F f10c008aa5 Bump 2.7.0 + changelog
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-12-18 18:21:51 -08:00
Joffrey F ac68a36a89
Merge pull request #1727 from mbelang/join-swarn-default-listen-address
Add join_swarm default listen address
2017-12-18 17:16:41 -08:00
Joffrey F 5736436966
Merge pull request #1828 from pkit/fix_error_from_httpex
fixes create_api_error_from_http_exception()
2017-12-18 14:26:47 -08:00
Constantine Peresypkin b20f800db6 fixes create_api_error_from_http_exception()
`create_api_error_from_http_exception()` is never tested in the original code
and will fail miserably when fed with empty `HTTPError` object
see fixes in requests for this behaviour: https://github.com/requests/requests/pull/3179

Signed-off-by: Constantine Peresypkin <pconstantine@gmail.com>
2017-12-18 17:15:48 +02:00
Boik adbb3079dd make the error message clearer
Signed-off-by: Boik <qazbnm456@gmail.com>
2017-12-16 09:31:27 +08:00
Joffrey F bf699c7ef7
Merge pull request #1836 from docker/1813-run-autoremove
Retrieve container logs before container exits / is removed
2017-12-14 17:45:18 -08:00
Joffrey F 1fd59586d1
Merge pull request #1837 from feliperuhland/fix_default_api_version
Updated DEFAULT API VERSION in docstrings.
2017-12-14 16:54:33 -08:00
Joffrey F 6b8dfe4249 Retrieve container logs before container exits / is removed
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-12-14 16:53:44 -08:00
Felipe Ruhland b6d0dc1e5a Fixed DEFAULT API VERSION in docstrings.
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
2017-12-14 22:39:34 -02:00