|
1 | 1 | Change log
|
2 | 2 | ==========
|
3 | 3 |
|
| 4 | +2.1.0 |
| 5 | +----- |
| 6 | + |
| 7 | +[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/27?closed=1) |
| 8 | + |
| 9 | +### Features |
| 10 | + |
| 11 | +* Added the following pruning methods: |
| 12 | + * In `APIClient`: `prune_containers`, `prune_images`, `prune_networks`, |
| 13 | + `prune_volumes` |
| 14 | + * In `DockerClient`: `containers.prune`, `images.prune`, `networks.prune`, |
| 15 | + `volumes.prune` |
| 16 | +* Added support for the plugins API: |
| 17 | + * In `APIClient`: `configure_plugin`, `create_plugin`, `disable_plugin`, |
| 18 | + `enable_plugin`, `inspect_plugin`, `pull_plugin`, `plugins`, |
| 19 | + `plugin_privileges`, `push_plugin`, `remove_plugin` |
| 20 | + * In `DockerClient`: `plugins.create`, `plugins.get`, `plugins.install`, |
| 21 | + `plugins.list`, and the `Plugin` model. |
| 22 | +* Added support for the secrets API: |
| 23 | + * In `APIClient`: `create_secret`, `inspect_secret`, `remove_secret`, |
| 24 | + `secrets` |
| 25 | + * In `DockerClient`: `secret.create`, `secret.get`, `secret.list` and |
| 26 | + the `Secret` model. |
| 27 | + * Added `secrets` parameter to `ContainerSpec`. Each item in the `secrets` |
| 28 | + list must be a `docker.types.SecretReference` instance. |
| 29 | +* Added support for `cache_from` in `APIClient.build` and |
| 30 | + `DockerClient.images.build`. |
| 31 | +* Added support for `auto_remove` and `storage_opt` in |
| 32 | + `APIClient.create_host_config` and `DockerClient.containers.run` |
| 33 | +* Added support for `stop_timeout` in `APIClient.create_container` and |
| 34 | + `DockerClient.containers.run` |
| 35 | +* Added support for the `force` parameter in `APIClient.remove_volume` and |
| 36 | + `Volume.remove` |
| 37 | +* Added support for `max_failure_ratio` and `monitor` in `UpdateConfig` |
| 38 | +* Added support for `force_update` in `TaskTemplate` |
| 39 | +* Made `name` parameter optional in `APIClient.create_volume` and |
| 40 | + `DockerClient.volumes.create` |
| 41 | + |
| 42 | +### Bugfixes |
| 43 | + |
| 44 | +* Fixed a bug where building from a directory containing socket-type files |
| 45 | + would raise an unexpected `AttributeError`. |
| 46 | +* Fixed an issue that was preventing the `DockerClient.swarm.init` method to |
| 47 | + take into account arguments passed to it. |
| 48 | +* `Image.tag` now correctly returns a boolean value upon completion. |
| 49 | +* Fixed several issues related to passing `volumes` in |
| 50 | + `DockerClient.containers.run` |
| 51 | +* Fixed an issue where `DockerClient.image.build` wouldn't return an `Image` |
| 52 | + object even when the build was successful |
| 53 | + |
| 54 | + |
4 | 55 | 2.0.2
|
5 | 56 | -----
|
6 | 57 |
|
|
0 commit comments