|
1 | 1 | Change log
|
2 | 2 | ==========
|
3 | 3 |
|
| 4 | +2.0.0 |
| 5 | +----- |
| 6 | + |
| 7 | +[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/22?closed=1) |
| 8 | + |
| 9 | +### Breaking changes |
| 10 | + |
| 11 | +* Dropped support for Python 2.6 |
| 12 | +* `docker.Client` has been renamed to `docker.APIClient` |
| 13 | +* `docker.from_env` now creates a `DockerClient` instance instead of an |
| 14 | + `APIClient` instance. |
| 15 | +* Removed HostConfig parameters from `APIClient.start` |
| 16 | +* The minimum supported API version is now 1.21 (Engine version 1.9.0+) |
| 17 | +* The name of the `pip` package is now `docker` (was: `docker-py`). New |
| 18 | + versions of this library will only be published as `docker` from now on. |
| 19 | +* `docker.ssladapter` is now `docker.transport.ssladapter` |
| 20 | +* The package structure has been flattened in certain cases, which may affect |
| 21 | + import for `docker.auth` and `docker.utils.ports` |
| 22 | +* `docker.utils.types` has been moved to `docker.types` |
| 23 | +* `create_host_config`, `create_ipam_pool` and `create_ipam_config` have been |
| 24 | + removed from `docker.utils`. They have been replaced by the following classes |
| 25 | + in `docker.types`: `HostConfig`, `IPAMPool` and `IPAMCOnfig`. |
| 26 | + |
| 27 | +### Features |
| 28 | + |
| 29 | +* Added a high-level, user-focused API as `docker.DockerClient`. See the |
| 30 | + README and documentation for more information. |
| 31 | +* Implemented `update_node` method in `APIClient`. |
| 32 | +* Implemented `remove_node` method in `APIClient`. |
| 33 | +* Added support for `restart_policy` in `update_container`. |
| 34 | +* Added support for `labels` and `shmsize` in `build`. |
| 35 | +* Added support for `attachable` in `create_network` |
| 36 | +* Added support for `healthcheck` in `create_container`. |
| 37 | +* Added support for `isolation` in `HostConfig`. |
| 38 | +* Expanded support for `pid_mode` in `HostConfig` (now supports arbitrary |
| 39 | + values for API version >= 1.24). |
| 40 | +* Added support for `options` in `IPAMConfig` |
| 41 | +* Added a `HealthCheck` class to `docker.types` to be used in |
| 42 | + `create_container`. |
| 43 | +* Added an `EndpointSpec` class to `docker.types` to be used in |
| 44 | + `create_service` and `update_service`. |
| 45 | + |
| 46 | + |
| 47 | +### Bugfixes |
| 48 | + |
| 49 | +* Fixed a bug where auth information would not be properly passed to the engine |
| 50 | + during a `build` if the client used a credentials store. |
| 51 | +* Fixed an issue with some exclusion patterns in `build`. |
| 52 | +* Fixed an issue where context files were bundled with the wrong permissions |
| 53 | + when calling `build` on Windows. |
| 54 | +* Fixed an issue where auth info would not be retrieved from its default location |
| 55 | + on Windows. |
| 56 | +* Fixed an issue where lists of `networks` in `create_service` and |
| 57 | + `update_service` wouldn't be properly converted for the engine. |
| 58 | +* Fixed an issue where `endpoint_config` in `create_service` and |
| 59 | + `update_service` would be ignored. |
| 60 | +* `endpoint_config` in `create_service` and `update_service` has been |
| 61 | + deprecated in favor of `endpoint_spec` |
| 62 | +* Fixed a bug where `constraints` in a `TaskTemplate` object wouldn't be |
| 63 | + properly converted for the engine. |
| 64 | +* Fixed an issue where providing a dictionary for `env` in `ContainerSpec` |
| 65 | + would provoke an `APIError` when sent to the engine. |
| 66 | +* Fixed a bug where providing an `env_file` containing empty lines in |
| 67 | + `create_container`would raise an exception. |
| 68 | +* Fixed a bug where `detach` was being ignored by `exec_start`. |
| 69 | + |
| 70 | +### Documentation |
| 71 | + |
| 72 | +* Documentation for classes and methods is now included alongside the code as |
| 73 | + docstrings. |
| 74 | + |
4 | 75 | 1.10.6
|
5 | 76 | ------
|
6 | 77 |
|
|
0 commit comments