Skip to content

Commit 1ad6859

Browse files
committed
Bump 2.4.0
Signed-off-by: Joffrey F <[email protected]>
1 parent 15030cb commit 1ad6859

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

docker/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "2.4.0-dev"
1+
version = "2.4.0"
22
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ Configuration types
128128
.. autoclass:: DriverConfig
129129
.. autoclass:: EndpointSpec
130130
.. autoclass:: Mount
131+
.. autoclass:: Placement
131132
.. autoclass:: Resources
132133
.. autoclass:: RestartPolicy
133134
.. autoclass:: SecretReference

docs/change-log.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
11
Change log
22
==========
33

4+
2.4.0
5+
-----
6+
7+
[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/33?closed=1)
8+
9+
### Features
10+
11+
* Added support for the `target` and `network_mode` parameters in
12+
`APIClient.build` and `DockerClient.images.build`.
13+
* Added support for the `runtime` parameter in `APIClient.create_container`
14+
and `DockerClient.containers.run`.
15+
* Added support for the `ingress` parameter in `APIClient.create_network` and
16+
`DockerClient.networks.create`.
17+
* Added support for `placement` configuration in `docker.types.TaskTemplate`.
18+
* Added support for `tty` configuration in `docker.types.ContainerSpec`.
19+
* Added support for `start_period` configuration in `docker.types.Healthcheck`.
20+
* The `credHelpers` section in Docker's configuration file is now recognized.
21+
* Port specifications including IPv6 endpoints are now supported.
22+
23+
### Bugfixes
24+
25+
* Fixed a bug where instantiating a `DockerClient` using `docker.from_env`
26+
wouldn't correctly set the default timeout value.
27+
* Fixed a bug where `DockerClient.secrets` was not accessible as a property.
28+
* Fixed a bug where `DockerClient.build` would sometimes return the wrong
29+
image.
30+
* Fixed a bug where values for `HostConfig.nano_cpus` exceeding 2^32 would
31+
raise a type error.
32+
* `Image.tag` now properly returns `True` when the operation is successful.
33+
* `APIClient.logs` and `Container.logs` now raise an exception if the `since`
34+
argument uses an unsupported type instead of ignoring the value.
35+
* Fixed a bug where some methods would raise a `NullResource` exception when
36+
the resource ID was provided using a keyword argument.
37+
38+
### Miscellaneous
39+
40+
* `APIClient` instances can now be pickled.
41+
442
2.3.0
543
-----
644

0 commit comments

Comments
 (0)