Releases: docker/docker-py
Releases · docker/docker-py
4.0.0
List of PRs / issues for this release
Breaking changes
- Support for Python 3.3 and Python 3.4 has been dropped
APIClient.update_service,APIClient.init_swarm, and
DockerClient.swarm.initnow return adictfrom the API's response body- In
APIClient.buildandDockerClient.images.build, theuse_config_proxy
parameter now defaults to True init_pathis no longer a valid parameter forHostConfig
Features
- It is now possible to provide
SCTPports for port mappings ContainerSpecs now support theinitparameterDockerClient.swarm.initandAPIClient.init_swarmnow support the
data_path_addrparameterAPIClient.update_swarmandDockerClient.swarm.updatenow support the
rotate_manager_unlock_keyparameterAPIClient.update_servicereturns the API's response body as adictAPIClient.init_swarm, andDockerClient.swarm.initnow return the API's
response body as adict
Bugfixes
- Fixed
PlacementPreferenceinstances to produce a valid API type - Fixed a bug where not setting a value for
buildargsinbuildcould cause
the library to attempt accessing attributes of aNonevalue - Fixed a bug where setting the
volume_driverparameter in
DockerClient.containers.createwould result in an error APIClient.inspect_distributionnow correctly sets the authentication
headers on the request, allowing it to be used with private repositories
This change also applies toDockerClient.get_registry_data
3.7.2
List of PRs / issues for this release
Bugfixes
- Fix base_url to keep TCP protocol on utils.py by letting the responsability of changing the
protocol toparse_hostafterwards, lettingbase_urlwith the original value. - XFAIL test_attach_stream_and_cancel on TLS
3.7.1
List of PRs / issues for this release
Bugfixes
- Set a different default number (which is now 9) for SSH pools
- Adds a BaseHTTPAdapter with a close method to ensure that the
pools is clean on close() - Makes SSHHTTPAdapter reopen a closed connection when needed
like the others
3.7.0
List of PRs / issues for this release
Features
- Added support for multiplexed streams (for
attachandexec_start). Learn
more at https://docker-py.readthedocs.io/en/stable/user_guides/multiplex.html - Added the
use_config_proxyparameter to the following methods:
APIClient.build,APIClient.create_container,DockerClient.images.build
andDockerClient.containers.run(Falseby default). This parameter
will becomeTrueby default in the 4.0.0 release. - Placement preferences for Swarm services are better validated on the client
and documentation has been updated accordingly
Bugfixes
- Fixed a bug where credential stores weren't queried for relevant registry
credentials with certain variations of theconfig.jsonfile. DockerClient.swarm.initnow returns a boolean value as advertised.
3.6.0
List of PRs / issues for this release
Features
- Added support for connecting to the Docker Engine over SSH. Additional
dependencies for this feature can be installed with
pip install "docker[ssh]" - Added support for the
namedparameter inImage.save, which may be
used to ensure the resulting tarball retains the image's name on save.
Bugfixes
- Fixed a bug where builds on Windows with a context path using the
\\?\
prefix would fail with some relative Dockerfile paths. - Fixed an issue where pulls made with the
DockerClientwould fail when
setting thestreamparameter toTrue.
Miscellaneous
- The minimum requirement for the
requestsdependency has been bumped
to 2.20.0
3.5.1
List of PRs / issues for this release
Miscellaneous
- Bumped version of
pyOpenSSLinrequirements.txtandsetup.pyto prevent
installation of a vulnerable version - Docs fixes
3.5.0
List of PRs / issues for this release
Deprecation warning
- Support for Python 3.3 will be dropped in the 4.0.0 release
Features
- Updated dependencies to ensure support for Python 3.7 environments
- Added support for the
uts_modeparameter inHostConfig - The
UpdateConfigconstructor now allowsrollbackas a valid
value forfailure_action - Added support for
rollback_configinAPIClient.create_service,
APIClient.update_service,DockerClient.services.createand
Service.update.
Bugfixes
- Credential helpers are now properly leveraged by the
buildmethod - Fixed a bug that caused placement preferences to be ignored when provided
toDockerClient.services.create - Fixed a bug that caused a
uservalue of0to be ignored in
APIClient.create_containerandDockerClient.containers.create
3.4.1
List of PRs / issues for this release
Bugfixes
- Fixed a bug that caused auth values in config files written using one of the
legacy formats to be ignored - Fixed issues with handling of double-wildcard
**patterns in
.dockerignorefiles
3.4.0
List of PRs / issues for this release
Features
- The
APIClientandDockerClientconstructors now accept acredstore_env
parameter. When set, values in this dictionary are added to the environment
when executing the credential store process.
Bugfixes
DockerClient.networks.prunenow properly returns the operation's result- Fixed a bug that caused custom Dockerfile paths in a subfolder of the build
context to be invalidated, preventing these builds from working - The
plugin_privilegesmethod can now be called for plugins requiring
authentication to access - Fixed a bug that caused attempts to read a data stream over an unsecured TCP
socket to crash on Windows clients - Fixed a bug where using the
read_onlyparameter when creating a service using
theDockerClientwas being ignored - Fixed an issue where
Service.scalewould not properly update the service's
mode, causing the operation to fail silently
3.3.0
List of PRs / issues for this release
Features
- Added support for
prune_buildsinAPIClientandDockerClient.images - Added support for
ignore_removedparameter in
DockerClient.containers.list
Bugfixes
- Fixed an issue that caused builds to fail when an in-context Dockerfile
would be specified using its absolute path - Installation with pip 10.0.0 and above no longer fails
- Connection timeout for
stopandrestartnow gets properly adjusted to
allow for the operation to finish in the specified time - Improved docker credential store support on Windows