Skip to content

Releases: docker/docker-py

4.0.0

19 May 01:38
5d42ab8
Compare
Choose a tag to compare

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.init now return a dict from the API's response body
  • In APIClient.build and DockerClient.images.build, the use_config_proxy
    parameter now defaults to True
  • init_path is no longer a valid parameter for HostConfig

Features

  • It is now possible to provide SCTP ports for port mappings
  • ContainerSpecs now support the init parameter
  • DockerClient.swarm.init and APIClient.init_swarm now support the
    data_path_addr parameter
  • APIClient.update_swarm and DockerClient.swarm.update now support the
    rotate_manager_unlock_key parameter
  • APIClient.update_service returns the API's response body as a dict
  • APIClient.init_swarm, and DockerClient.swarm.init now return the API's
    response body as a dict

Bugfixes

  • Fixed PlacementPreference instances to produce a valid API type
  • Fixed a bug where not setting a value for buildargs in build could cause
    the library to attempt accessing attributes of a None value
  • Fixed a bug where setting the volume_driver parameter in
    DockerClient.containers.create would result in an error
  • APIClient.inspect_distribution now correctly sets the authentication
    headers on the request, allowing it to be used with private repositories
    This change also applies to DockerClient.get_registry_data

3.7.2

28 Mar 16:34
a4c251d
Compare
Choose a tag to compare

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 to parse_host afterwards, letting base_url with the original value.
  • XFAIL test_attach_stream_and_cancel on TLS

3.7.1

20 Mar 13:31
cb8b462
Compare
Choose a tag to compare

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

10 Jan 17:19
ac92219
Compare
Choose a tag to compare

List of PRs / issues for this release

Features

  • Added support for multiplexed streams (for attach and exec_start). Learn
    more at https://docker-py.readthedocs.io/en/stable/user_guides/multiplex.html
  • Added the use_config_proxy parameter to the following methods:
    APIClient.build, APIClient.create_container, DockerClient.images.build
    and DockerClient.containers.run (False by default). This parameter
    will become True by 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 the config.json file.
  • DockerClient.swarm.init now returns a boolean value as advertised.

3.6.0

28 Nov 22:29
d74bfa6
Compare
Choose a tag to compare

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 named parameter in Image.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 DockerClient would fail when
    setting the stream parameter to True.

Miscellaneous

  • The minimum requirement for the requests dependency has been bumped
    to 2.20.0

3.5.1

17 Oct 22:05
7cc0a1b
Compare
Choose a tag to compare

List of PRs / issues for this release

Miscellaneous

  • Bumped version of pyOpenSSL in requirements.txt and setup.py to prevent
    installation of a vulnerable version
  • Docs fixes

3.5.0

10 Aug 00:30
e0495a9
Compare
Choose a tag to compare

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_mode parameter in HostConfig
  • The UpdateConfig constructor now allows rollback as a valid
    value for failure_action
  • Added support for rollback_config in APIClient.create_service,
    APIClient.update_service, DockerClient.services.create and
    Service.update.

Bugfixes

  • Credential helpers are now properly leveraged by the build method
  • Fixed a bug that caused placement preferences to be ignored when provided
    to DockerClient.services.create
  • Fixed a bug that caused a user value of 0 to be ignored in
    APIClient.create_container and DockerClient.containers.create

3.4.1

09 Aug 23:00
1e389b7
Compare
Choose a tag to compare

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
    .dockerignore files

3.4.0

18 Jun 22:23
f70545e
Compare
Choose a tag to compare

List of PRs / issues for this release

Features

  • The APIClient and DockerClient constructors now accept a credstore_env
    parameter. When set, values in this dictionary are added to the environment
    when executing the credential store process.

Bugfixes

  • DockerClient.networks.prune now 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_privileges method 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_only parameter when creating a service using
    the DockerClient was being ignored
  • Fixed an issue where Service.scale would not properly update the service's
    mode, causing the operation to fail silently

3.3.0

26 Apr 01:05
Compare
Choose a tag to compare

List of PRs / issues for this release

Features

  • Added support for prune_builds in APIClient and DockerClient.images
  • Added support for ignore_removed parameter 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 stop and restart now gets properly adjusted to
    allow for the operation to finish in the specified time
  • Improved docker credential store support on Windows