2.0.0 release#1343
Merged
Merged
Conversation
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Real errors were getting swallowed in these tests, producing other confusing cascading errors. This makes it much easier to make sure a node is not in a Swarm, while also handling other errors correctly. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
autopep8 --in-place --recursive --experimental -aaa --ignore E309 . Signed-off-by: Ben Firshman <ben@firshman.co.uk>
make integration-test file=models_services_test.py Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
The build context is tarred up on the client and then sent to the Docker daemon. However Windows permissions don't match the Unix ones. Therefore we have to mark all files as executable when creating a build context on Windows, like `docker build` already does: moby/moby#11047. Signed-off-by: Sebastian Schwarz <seschwar@gmail.com>
Added update_node function to enable setting labels on nodes. This exposes the Update a Node function from the Docker API and should enable promoting/demoting manager nodes inside a swarm. Signed-off-by: Nathan Shirlberg <nshirlberg@labattfood.com>
This resolves an issue where TarFile.gettarinfo() doesn't include the file object, meaning that TarFile.addfile(TarFile.gettarinfo()) doesn't pass the test suite. Instead, this uses an open() within a try...except block to include a file object for each file without passing a file object when the path is a directory. Signed-off-by: Christian Bundy <christianbundy@fraction.io>
Signed-off-by: Maxime Feron <maxime.feron@corp.ovh.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Because two things called `BaseTestCase` is quite confusing. I haven't bothered refactoring the other `BaseTestCase` because that disappears anyway when we drop Python 2.6 support. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Because it's a helper, not a base thing. In preparation for moving/deleting the unit test base classes. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Signed-off-by: Walker Lee <walkerlee.tw@gmail.com>
- update config structure has new members - service name update is no longer supported Signed-off-by: Alessandro Boch <aboch@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Introduced by #1230 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Signed-off-by: Ryan Belgrave <Ryan.Belgrave@target.com>
…ase with first letter capital Signed-off-by: bin liu <liubin0329@gmail.com>
Signed-off-by: Simon Li <orpheus+devel@gmail.com>
Signed-off-by: Simon Li <orpheus+devel@gmail.com>
Fixes #1265 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
Fixes the new, purposely broken test added in the previous commit. Signed-off-by: Jon Cotton <jc@finaltransfer.net>
Docker added support for sharing PID namespaces with other containers since version 1.12 (see moby/moby#22481). Signed-off-by: Stepan Stipl <stepan@stipl.net>
People upgrading to docker-py 2.0 without being aware of the new client API will likely try to call the old `containers()` method. This adds a helpful warning telling them to use APIClient to get the old API. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
Fixes #1271 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
docker.types Signed-off-by: Joffrey F <joffrey@docker.com>
a credentials store Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
The Engine client looks *only* at the USERPROFILE environment variable on Windows, so we should do that too. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Makefile now runs tests against Docker 1.13 RC Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Contributor
Author
Contributor
Contributor
|
Nice! I am travelling without a computer until next week, but I trust that this is all good. ;) |
Signed-off-by: Joffrey F <joffrey@docker.com>
Contributor
|
yay ✨ |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

2.0.0
List of PRs / issues for this release
Breaking changes
docker.Clienthas been renamed todocker.APIClientdocker.from_envnow creates aDockerClientinstance instead of anAPIClientinstance.APIClient.startpippackage is nowdocker(was:docker-py). Newversions of this library will only be published as
dockerfrom now on.docker.ssladapteris nowdocker.transport.ssladapterimport for
docker.authanddocker.utils.portsdocker.utils.typeshas been moved todocker.typescreate_host_config,create_ipam_poolandcreate_ipam_confighave beenremoved from
docker.utils. They have been replaced by the following classesin
docker.types:HostConfig,IPAMPoolandIPAMCOnfig.Features
docker.DockerClient. See theREADME and documentation for more information.
update_nodemethod inAPIClient.remove_nodemethod inAPIClient.restart_policyinupdate_container.labelsandshmsizeinbuild.attachableincreate_networkhealthcheckincreate_container.isolationinHostConfig.pid_modeinHostConfig(now supports arbitraryvalues for API version >= 1.24).
optionsinIPAMConfigHealthCheckclass todocker.typesto be used increate_container.EndpointSpecclass todocker.typesto be used increate_serviceandupdate_service.Bugfixes
during a
buildif the client used a credentials store.build.when calling
buildon Windows.on Windows.
networksincreate_serviceandupdate_servicewouldn't be properly converted for the engine.endpoint_configincreate_serviceandupdate_servicewould be ignored.endpoint_configincreate_serviceandupdate_servicehas beendeprecated in favor of
endpoint_specconstraintsin aTaskTemplateobject wouldn't beproperly converted for the engine.
envinContainerSpecwould provoke an
APIErrorwhen sent to the engine.env_filecontaining empty lines increate_containerwould raise an exception.detachwas being ignored byexec_start.