docker breaking changes
docker 7.0.0 (December 8, 2023) is its newest release with breaking changes, 14 of them. The first: docker 7.0.0 drops support for Python 3.7. Every breaking API change we have recorded in docker on PyPI: 40 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.2.0, released July 9, 2026.
Its 7.0.0 release drops Python 3.7. Python end of life dates.
- From 6.0.0 to 7.0.0: 16 breaking changes in 2 versions.
- From 5.0.0 to 7.0.0: 37 breaking changes in 4 versions.
docker 7.0.0 breaking changes
- Removed
Python 3.7 is no longer supported; upgrade Python to keep using this version. github.com - Removed
docker.api.client.SSLHTTPAdapter
docker.api.client.SSLHTTPAdapter was removed in docker 7.0.0 pypi.org - Removed
docker.tls.SSLHTTPAdapter
docker.tls.SSLHTTPAdapter was removed in docker 7.0.0 pypi.org - Removed
docker.TLSConfig.assert_fingerprint
TLSConfig.assert_fingerprint was removed in docker 7.0.0 pypi.org - Removed
docker.TLSConfig.assert_hostname
The assert_hostname option was removed; code passing it must drop it. pypi.org - Removed
docker.TLSConfig.ssl_version
The ssl_version option was removed; code passing it must drop it. pypi.org - Removed
docker.transport.ssladapter
docker.transport.ssladapter was removed in docker 7.0.0 pypi.org - Removed
docker.transport.SSLHTTPAdapter
docker.transport.SSLHTTPAdapter was removed in docker 7.0.0 pypi.org - Behavior changed
websocket-client is now an extra; install docker[websockets] if you use attach_socket with ws=True. github.com - Signature changed
docker.api.build.BuildApiMixin.prune_builds
Was def prune_builds(self); now def prune_builds(self, filters=None, keep_storage=None, all=None). pypi.org - Signature changed
docker.api.client.ContainerApiMixin.commit
Was def commit(self, container, repository=None, tag=None, message=None, author=None, changes=None, conf=None); now def commit(self, container, repository=None, tag=None, message=None, author=None, pause=True, changes=None, conf=None). pypi.org - Signature changed
docker.client.kwargs_from_env
Was def kwargs_from_env(ssl_version=None, assert_hostname=None, environment=None); now def kwargs_from_env(environment=None). pypi.org - Signature changed
docker.TLSConfig.__init__
Was def __init__(self, client_cert=None, ca_cert=None, verify=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None); now def __init__(self, client_cert=None, ca_cert=None, verify=None). pypi.org - Signature changed
docker.utils.kwargs_from_env
Was def kwargs_from_env(ssl_version=None, assert_hostname=None, environment=None); now def kwargs_from_env(environment=None). pypi.org
docker 7.0.0b1 breaking changes
- Removed
Python 3.7 is no longer supported; upgrade Python to keep using this version. github.com - Behavior changed
websocket-client is now an extra; install docker[websockets] if you use attach_socket with ws=True. github.com
docker 6.0.0 breaking changes
- Removed
Python 3.7 or later is now required. Users on older Python versions must upgrade before installing this release. github.com - Removed
docker.__version__
docker.__version__ was removed in docker 6.0.0 pypi.org - Removed
docker.constants.version
docker.constants.version was removed in docker 6.0.0 pypi.org - Removed
docker.credentials.store.find_executable
docker.credentials.store.find_executable was removed in docker 6.0.0 pypi.org - Removed
docker.utils.utils.tls
docker.utils.utils.tls was removed in docker 6.0.0 pypi.org - Removed
docker.version_info
docker.version_info was removed in docker 6.0.0 pypi.org - Removed
docker.version.version
docker.version.version was removed in docker 6.0.0 pypi.org - Behavior changed
With the native Python SSH client, connections to hosts with unknown keys now fail with paramiko.ssh_exception.SSHException. Add the host key to known hosts before connecting. github.com - Behavior changed
Short IDs returned by the library are now 12 characters instead of 10. Code that depends on the old length must be updated. github.com - Signature changed
docker.api.client.ContainerApiMixin.create_container
Was def create_container(self, image, command=None, hostname=None, user=None, detach=False, stdin_open=False, tty=False, ports=None, environment=None, volumes=None, network_disabled=False, name=None, entrypoint=None, working_dir=None... pypi.org
And 10 more in this version. Sign up to see every change
docker 6.0.0b2 breaking changes
- Removed
docker.credentials.utils.find_executable
The find_executable function in docker.credentials.utils has been removed. Code that imports it must stop using it. pypi.org
docker 5.0.0 breaking changes
- Behavior changed
Python 3.6 is now the lowest supported Python version. Older Python 3 versions must be upgraded before using this release. github.com - Behavior changed
Python 2.7 is no longer supported. Keep using 4.4.4 on Python 2.7 or upgrade your interpreter. github.com - Signature changed
docker.api.client.ImageApiMixin.search
Was def search(self, term); now def search(self, term, limit=None). pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.