summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2637 from docker/4.3.0-release4.3.0releaseAnca Iordache2020-08-1022-36/+277
|\ | | | | 4.3.0 release
| * Fix changelog merge4.3.0-releaseaiordache2020-08-101-5/+1
| | | | | | | | Signed-off-by: aiordache <anca.iordache@docker.com>
| * Fix mergeaiordache2020-08-101-35/+0
| | | | | | | | Signed-off-by: aiordache <anca.iordache@docker.com>
| * Prepare release 4.3.0aiordache2020-08-102-1/+16
| | | | | | | | Signed-off-by: aiordache <anca.iordache@docker.com>
| * Update default API version to v1.39 (#2512)Sebastiaan van Stijn2020-08-102-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update default API version to v1.39 When running the docker-py integration tests in the Moby repository, some tests were skipped because the API version used was too low: SKIPPED [1] tests/integration/api_service_test.py:882: API version is too low (< 1.38) SKIPPED [1] tests/integration/api_swarm_test.py:59: API version is too low (< 1.39) SKIPPED [1] tests/integration/api_swarm_test.py:38: API version is too low (< 1.39) SKIPPED [1] tests/integration/api_swarm_test.py:45: API version is too low (< 1.39) SKIPPED [1] tests/integration/api_swarm_test.py:52: API version is too low (< 1.39) While it's possible to override the API version to use for testing using the `DOCKER_TEST_API_VERSION` environment variable, we may want to set the default to a version that supports all features that were added. This patch updates the default API version to v1.39, which is the minimum version required for those features, and corresponds with Docker 18.09. Note that the API version of the current (19.03) Docker release is v1.40, but using that version as default would exclude users that did not update their Docker version yet (and would not be needed yet for the features provided). Signed-off-by: Sebastiaan van Stijn <github@gone.nl> * Makefile: set DOCKER_TEST_API_VERSION to v1.39 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| * Fix parameter names in TLSConfig error messages and commentsVille Skyttä2020-08-101-5/+5
| | | | | | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
| * Disable compression by default when using get_archive methodNiklas Saari2020-08-103-5/+17
| | | | | | | | Signed-off-by: Niklas Saari <niklas.saari@tutanota.com>
| * Update test engine version to 19.03.12Sebastiaan van Stijn2020-08-102-3/+3
| | | | | | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| * Spelling fixes (#2571)Ville Skyttä2020-08-103-4/+4
| | | | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
| * Add device requests (#2471)Lucidiot2020-08-105-3/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add DeviceRequest type Signed-off-by: Erwan Rouchet <rouchet@teklia.com> * Add device_requests kwarg in host config Signed-off-by: Erwan Rouchet <rouchet@teklia.com> * Add unit test for device requests Signed-off-by: Erwan Rouchet <rouchet@teklia.com> * Fix unit test Signed-off-by: Erwan Rouchet <rouchet@teklia.com> * Use parentheses for multiline import Signed-off-by: Erwan Rouchet <rouchet@teklia.com> * Create 1.40 client for device-requests test Signed-off-by: Laurie O <laurie_opperman@hotmail.com> Co-authored-by: Laurie O <laurie_opperman@hotmail.com> Co-authored-by: Bastien Abadie <abadie@teklia.com>
| * Fix CreateContainerTest.test_invalid_log_driver_raises_exceptionSebastiaan van Stijn2020-08-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This test was updated in 7d92fbdee1b8621f54faa595ba53d7ef78ef1acc, but omitted the "error" prefix in the message, causing the test to fail; _________ CreateContainerTest.test_invalid_log_driver_raises_exception _________ tests/integration/api_container_test.py:293: in test_invalid_log_driver_raises_exception assert excinfo.value.explanation in expected_msgs E AssertionError: assert 'error looking up logging plugin asdf: plugin "asdf" not found' in ["logger: no log driver named 'asdf' is registered", 'looking up logging plugin asdf: plugin "asdf" not found'] E + where 'error looking up logging plugin asdf: plugin "asdf" not found' = APIError(HTTPError('400 Client Error: Bad Request for url: http+docker://localhost/v1.39/containers/create')).explanation E + where APIError(HTTPError('400 Client Error: Bad Request for url: http+docker://localhost/v1.39/containers/create')) = <ExceptionInfo APIError tblen=6>.value Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| * Upgrade Windows dependencyOfek Lev2020-08-102-6/+2
| | | | | | | | Signed-off-by: Ofek Lev <ofekmeister@gmail.com>
| * Add support for DriverOpts in EndpointConfigMike Haboustak2020-08-106-4/+41
| | | | | | | | | | | | | | Docker API 1.32 added support for providing options to a network driver via EndpointConfig when connecting a container to a network. Signed-off-by: Mike Haboustak <haboustak@gmail.com>
| * Update version to 4.3.0-devUlysses Souza2020-08-101-1/+1
| | | | | | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
| * Make orchestrator field optionalaiordache2020-08-102-55/+17
| | | | | | | | Signed-off-by: aiordache <anca.iordache@docker.com>
| * Specify when to use `tls` on Context constructorUlysses Souza2020-08-101-0/+4
| | | | | | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
| * Post release 4.2.0 update:Ulysses Souza2020-08-101-0/+3
| | | | | | | | | | | | | | - Changelog - Next Version Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
| * Implement context management, lifecycle and unittests.Anca Iordache2020-08-102-0/+69
| | | | | | | | Signed-off-by: Anca Iordache <anca.iordache@docker.com>
| * obey Hostname Username Port and ProxyCommand settings from .ssh/configTill Riedel2020-08-101-3/+0
| | | | | | | | Signed-off-by: Till Riedel <riedel@teco.edu>
| * set logging level of paramiko to warnTill Riedel2020-08-101-0/+3
| | | | | | | | Signed-off-by: Till Riedel <riedel@teco.edu>
| * Update credentials-helpers to v0.6.2Sebastiaan van Stijn2020-08-101-1/+1
|/ | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Merge pull request #2608 from ulyssessouza/4.2.2-release4.2.2Ulysses Souza2020-06-304-39/+75
|\ | | | | Bump 4.2.2 release
| * Bump 4.2.2Ulysses Souza2020-06-302-1/+10
| | | | | | | | Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
| * Skip parsing non-docker endpointsaiordache2020-06-301-35/+62
| | | | | | | | Signed-off-by: aiordache <anca.iordache@docker.com>
| * Jenkinsfile: update node selection labelsSebastiaan van Stijn2020-06-301-3/+3
| | | | | | | | | | | | | | Make sure we use the LTS nodes, to prevent using machines that we prepared with cgroups v2 (which is not yet supported by docker v19.03) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| * Update version after 4.2.1 releaseUlysses Souza2020-06-301-1/+1
|/ | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
* Merge pull request #2580 from ulyssessouza/4.2.1-release4.2.1Ulysses Souza2020-06-0210-42/+64
|\ | | | | Bump 4.2.1
| * Bump 4.2.1Ulysses Souza2020-06-022-1/+11
| | | | | | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
| * add test for context load without orchestratoraiordache2020-06-021-0/+7
| | | | | | | | Signed-off-by: aiordache <anca.iordache@docker.com>
| * Make orchestrator field optionalaiordache2020-06-022-17/+17
| | | | | | | | Signed-off-by: aiordache <anca.iordache@docker.com>
| * Specify when to use `tls` on Context constructorUlysses Souza2020-06-023-6/+11
| | | | | | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
| * Fix tests to support both log plugin feedbacksWilson Júnior2020-06-021-3/+6
| | | | | | | | | | Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com> Docker-DCO-1.1-Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com> (github: wpjunior)
| * Update test engine version to 19.03.5Sebastiaan van Stijn2020-06-021-1/+1
| | | | | | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| * Jenkinsfile: remove obsolete engine versionsSebastiaan van Stijn2020-06-021-3/+1
| | | | | | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| * Use official docker:dind image instead of custom imageSebastiaan van Stijn2020-06-022-4/+4
| | | | | | | | | | | | | | This replaces the custom dockerswarm/dind image with the official dind images, which should provide the same functionality. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| * xfail "docker top" tests, and adjust for alpine imageSebastiaan van Stijn2020-06-021-8/+7
|/ | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Merge pull request #2506 from ulyssessouza/4.2.0-release4.2.0Ulysses Souza2020-02-0620-38/+719
|\ | | | | 4.2.0 release
| * Bump 4.2.0Ulysses Souza2020-02-062-1/+18
| | | | | | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
| * Implement context management, lifecycle and unittests.Anca Iordache2020-02-0614-23/+659
| | | | | | | | Signed-off-by: Anca Iordache <anca.iordache@docker.com>
| * Fix ImageCollectionTest.test_pull_multiple flakinessSebastiaan van Stijn2020-02-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ImageCollectionTest.test_pull_multiple test performs a `docker pull` without a `:tag` specified) to pull all tags of the given repository (image). After pulling the image, the image(s) pulled are checked to verify if the list of images contains the `:latest` tag. However, the test assumes that all tags of the image are tags for the same version of the image (same digest), and thus a *single* image is returned, which is not always the case. Currently, the `hello-world:latest` and `hello-world:linux` tags point to a different digest, therefore the `client.images.pull()` returns multiple images: one image for digest, making the test fail: =================================== FAILURES =================================== ____________________ ImageCollectionTest.test_pull_multiple ____________________ tests/integration/models_images_test.py:90: in test_pull_multiple assert len(images) == 1 E AssertionError: assert 2 == 1 E + where 2 = len([<Image: 'hello-world:linux'>, <Image: 'hello-world:latest'>]) This patch updates the test to not assume a single image is returned, and instead loop through the list of images and check if any of the images contains the `:latest` tag. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| * Version bumpChristopher Crone2020-02-061-1/+1
| | | | | | | | Signed-off-by: Christopher Crone <christopher.crone@docker.com>
| * Fix win32pipe.WaitNamedPipe throw exception in windows container.rentu2020-02-061-5/+7
| | | | | | | | Signed-off-by: Renlong Tu <rentu@microsoft.com>
| * Fix CI labels so we run on amd64 nodesNicolas De Loof2020-02-061-1/+1
| | | | | | | | Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
| * obey Hostname Username Port and ProxyCommand settings from .ssh/configTill Riedel2020-02-061-6/+27
| | | | | | | | Signed-off-by: Till Riedel <riedel@teco.edu>
| * set host key policy for ssh transport to WarningPolicy()Till Riedel2020-02-061-0/+1
| | | | | | | | Signed-off-by: Till Riedel <riedel@teco.edu>
| * set logging level of paramiko to warnTill Riedel2020-02-061-0/+2
|/ | | | Signed-off-by: Till Riedel <riedel@teco.edu>
* Merge pull request #2443 from docker/4.1.0-release4.1.0Chris Crone2019-10-0338-248/+453
|\ | | | | 4.1.0 release
| * Bump 4.1.04.1.0-releaseChristopher Crone2019-10-032-1/+22
| | | | | | | | Signed-off-by: Christopher Crone <christopher.crone@docker.com>
| * Bump pytest to 4.3.1Kir Kolyshkin2019-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pytest 4.3.1 includes the fix from https://github.com/pytest-dev/pytest/pull/4795 which should fix the following failure: > INFO: Building docker-sdk-python3:4.0.2... > sha256:c7a40413c985b6e75df324fae39b1c30cb78a25df71b7892f1a4a15449537fb3 > INFO: Starting docker-py tests... > Traceback (most recent call last): > File "/usr/local/bin/pytest", line 10, in <module> > sys.exit(main()) > File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 61, in main > config = _prepareconfig(args, plugins) > File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 182, in _prepareconfig > config = get_config() > File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 156, in get_config > pluginmanager.import_plugin(spec) > File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 530, in import_plugin > __import__(importspec) > File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 25, in <module> > class TempPathFactory(object): > File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory > lambda p: Path(os.path.abspath(six.text_type(p))) > TypeError: attrib() got an unexpected keyword argument 'convert' > Sending interrupt signal to process > Terminated > script returned exit code 143 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
| * Fix broken test due to BUSYBOX -> TEST_IMG renameSebastiaan van Stijn2019-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The BUSYBOX variable was renamed to TEST_IMG in 54b48a9b7ab59b4dcf49acf49ddf52035ba3ea08, however 0ddf428b6ce7accdac3506b45047df2cb72941ec got merged after that change, but was out of date, and therefore caused the tests to fail: ``` =================================== FAILURES =================================== ________ ServiceTest.test_create_service_with_network_attachment_config ________ tests/integration/api_service_test.py:379: in test_create_service_with_network_attachment_config container_spec = docker.types.ContainerSpec(BUSYBOX, ['true']) E NameError: global name 'BUSYBOX' is not defined ``` Fix the test by using the correct variable name. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>