2.4.0
List of PRs / issues for this release
Features
- Added support for the
targetandnetwork_modeparameters in
APIClient.buildandDockerClient.images.build. - Added support for the
runtimeparameter inAPIClient.create_container
andDockerClient.containers.run. - Added support for the
ingressparameter inAPIClient.create_networkand
DockerClient.networks.create. - Added support for
placementconfiguration indocker.types.TaskTemplate. - Added support for
ttyconfiguration indocker.types.ContainerSpec. - Added support for
start_periodconfiguration indocker.types.Healthcheck. - The
credHelperssection in Docker's configuration file is now recognized. - Port specifications including IPv6 endpoints are now supported.
Bugfixes
- Fixed a bug where instantiating a
DockerClientusingdocker.from_env
wouldn't correctly set the default timeout value. - Fixed a bug where
DockerClient.secretswas not accessible as a property. - Fixed a bug where
DockerClient.buildwould sometimes return the wrong
image. - Fixed a bug where values for
HostConfig.nano_cpusexceeding 2^32 would
raise a type error. Image.tagnow properly returnsTruewhen the operation is successful.APIClient.logsandContainer.logsnow raise an exception if thesince
argument uses an unsupported type instead of ignoring the value.- Fixed a bug where some methods would raise a
NullResourceexception when
the resource ID was provided using a keyword argument.
Miscellaneous
APIClientinstances can now be pickled.