unstale

pypi / docker

docker

What changed in docker 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

11 breaking1 security1 deprecations21 new APIs and options1 behavior and defaults8 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.3 on npm

docker 719 changes

Breaking changes 7

  • When DOCKER_HOST is not set, the default client now honors DOCKER_CONTEXT or the current Docker CLI context. Set DOCKER_HOST explicitly, use DOCKER_CONTEXT=default, or pass use_context=False to retain the previous connection behavior.

    7.2.0release notes

  • The explicit hostname check option was removed.

    7.0.0release notes

  • Full networking_config support is available for containers.create(), replacing network_driver_opt.

    7.0.0release notes

  • Websocket support is no longer included by default; install this extra to include the websocket-client dependency.

    7.0.0release notes

  • Python 3.7 is no longer supported.

    7.0.0release notes

  • The SSL version option was removed.

    7.0.0release notes

  • Tag format is validated before push.

    7.0.0release notes

New APIs and options 9

  • A new function explicitly creates a client from a Docker CLI context.

    7.2.0release notes

  • A new class method explicitly creates a client from a Docker CLI context.

    7.2.0release notes

  • Volumes now support subpaths.

    7.2.0release notes

  • Bind mount propagation modes such as rshared and private are supported.

    7.0.0release notes

  • container.commit() accepts a pause option.

    7.0.0release notes

  • A container health property returns its status, such as unhealthy.

    7.0.0release notes

  • prune_builds() accepts all on API v1.39 and later.

    7.0.0release notes

  • prune_builds() accepts filters on API v1.39 and later.

    7.0.0release notes

  • prune_builds() accepts keep_storage on API v1.39 and later.

    7.0.0release notes

Behavior and default changes 1

  • The default API version is now 1.45, corresponding to Moby 26.0/26.1.

    7.2.0release notes

Fixes and other changes 2

docker 624 changes

Breaking changes 4

  • docker.credentials.utils.find_executable was removed.

    6.0.0release notes

  • The default native Python SSH client rejects unknown host keys with paramiko.ssh_exception.SSHException.

    6.0.0release notes

  • Python 3.7 or later is now the minimum supported version.

    6.0.0release notes

  • Short IDs are now 12 characters instead of 10, matching the Docker CLI.

    6.0.0release notes

Security 1

  • TLS automatically negotiates the most secure available version.

    6.0.0release notes

Deprecations 1

  • The pip extra is deprecated and is a no-op; install docker instead because TLS support is always available.

    6.0.0release notes

New APIs and options 12

  • Container creation supports the cgroupns option.

    6.0.0release notes

  • Container runs support the cgroupns option.

    6.0.0release notes

  • Swarm support was added for DataPathPort.

    6.0.0release notes

  • Swarm support was added for GlobalJob and ReplicatedJobs.

    6.0.0release notes

  • Image gains a remove() method.

    6.0.0release notes

  • Containers can connect with a specified MAC address.

    6.0.0release notes

  • Container create and run accept a platform such as linux/amd64 or darwin/arm64.

    6.0.0release notes

  • Plugin.disable() accepts a force parameter.

    6.0.0release notes

  • Swarm support was added for GlobalJob and ReplicatedJobs.

    6.0.0release notes

  • Services accept a RollbackConfig argument.

    6.0.0release notes

  • Docker Swarm services support sysctl settings.

    6.0.0release notes

  • Version metadata is now exposed as __version__.

    6.0.0release notes

Fixes and other changes 6

  • Trailing whitespace in .dockerignore files is ignored.

    6.0.0release notes

  • Exceptions preserve context when re-raised.

    6.0.0release notes

  • Launching the external SSH client no longer spawns an extra subshell.

    6.0.0release notes

  • IPv6 hosts are parsed correctly when an explicit port is specified.

    6.0.0release notes

  • The ProxyCommand option for SSH connections is fixed.

    6.0.0release notes

  • Python 3.10 is supported.

    6.0.0release notes