Download Latest Version 7.1.0 source code.zip (327.3 kB)
Email in envelope

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

Home / 7.0.0
Name Modified Size InfoDownloads / Week
Parent folder
docker-7.0.0-py3-none-any.whl 2023-12-08 147.6 kB
docker-7.0.0.tar.gz 2023-12-08 258.5 kB
7.0.0 source code.tar.gz 2023-12-08 252.3 kB
7.0.0 source code.zip 2023-12-08 326.7 kB
README.md 2023-12-08 5.1 kB
Totals: 5 Items   990.1 kB 0

Upgrade Notes (from 6.x) ⚠️

  • Removed SSL version (ssl_version) and explicit hostname check (assert_hostname) options (#3185)
  • assert_hostname has not been used since Python 3.6 and was removed in 3.12
  • Python 3.7+ supports TLSv1.3 by default
  • Websocket support is no longer included by default (#3123)
  • Use pip install docker[websockets] to include websocket-client dependency
  • By default, docker-py hijacks the TCP connection and does not use Websockets
  • Websocket client is only required to use attach_socket(container, ws=True)
  • Python 3.7 no longer supported (reached end-of-life June 2023) (#3187)

Features ✨

  • Python 3.12 support (#3185)
  • Full networking_config support for containers.create() (#3121)
    • Replaces network_driver_opt (added in 6.1.0)
  • Add health() property to container that returns status (e.g. unhealthy) (#3147)
  • Add pause option to container.commit() (#3159)
  • Add support for bind mount propagation (e.g. rshared, private) (#3164)
  • Add support for filters, keep_storage, and all in prune_builds() on API v1.39+ (#3192)

Bugfixes 🐛

  • Consistently return docker.errors.NotFound on 404 responses (#3156)
  • Validate tag format before push (#3191)

Miscellaneous 🔧

  • Upgraded urllib3 version in requirements.txt (used for development/tests) (#3183)
  • Documentation typo fixes & formatting improvements (#3130)
  • Fixed integration test compatibility for newer Moby engine versions (#3165, [#3166], [#3145], [#3169], [#3170])
  • Switch to ruff for linting (#3126)

What's Changed

New Contributors

Full Changelog: https://github.com/docker/docker-py/compare/6.1.3...7.0.0

Source: README.md, updated 2023-12-08