Download Latest Version 7.2.0 source code.tar.gz (255.7 kB)
Email in envelope

Get an email when there's a new version of Docker SDK for Python

Home / 7.2.0
Name Modified Size InfoDownloads / Week
Parent folder
7.2.0 source code.tar.gz 2026-07-09 255.7 kB
7.2.0 source code.zip 2026-07-09 330.3 kB
README.md 2026-07-09 4.2 kB
docker-7.2.0-py3-none-any.whl 2026-07-09 148.8 kB
docker-7.2.0.tar.gz 2026-07-09 118.7 kB
Totals: 5 Items   857.7 kB 4

Upgrade Notes

  • docker.from_env() now honors the active Docker CLI context when DOCKER_HOST is not set.
  • This means the client may connect to the daemon selected by DOCKER_CONTEXT or the current context in ~/.docker/config.json, matching Docker CLI behavior more closely.
  • If your application relied on the previous default connection behavior, set DOCKER_HOST explicitly, set DOCKER_CONTEXT=default, or pass use_context=False to DockerClient.from_env().
  • Added docker.from_context() / DockerClient.from_context() for explicitly creating a client from a Docker CLI context.

Features

  • Added support for Docker contexts when creating the default client
  • Added subpath support for volumes

Bugfixes

  • Fixed exec_run documentation for the stream parameter
  • Fixed image loading to avoid depending on the deprecated JSONMessage.error field
  • Preserved the rotated unlock key in swarm integration tests
  • Fixed SSL certificate generation in tests
  • Fixed IPv6 integration tests by explicitly enabling IPv6 where required

Miscellaneous

  • Updated tests for newer Docker Engine behavior
  • CI and build updates

What's Changed

New Contributors

Full Changelog: https://github.com/docker/docker-py/compare/7.1.0...7.2.0

Source: README.md, updated 2026-07-09