| 1 |
--- |
| 2 |
ancestor: null |
| 3 |
releases: |
| 4 |
0.1.0: |
| 5 |
changes: |
| 6 |
bugfixes: |
| 7 |
- docker_login - fix internal config file storage to handle credentials for |
| 8 |
more than one registry (https://github.com/ansible-collections/community.general/issues/1117). |
| 9 |
minor_changes: |
| 10 |
- docker_container - now supports the ``device_requests`` option, which allows |
| 11 |
to request additional resources such as GPUs (https://github.com/ansible/ansible/issues/65748, |
| 12 |
https://github.com/ansible-collections/community.general/pull/1119). |
| 13 |
release_summary: 'The ``community.docker`` continues the work on the Ansible |
| 14 |
docker modules and plugins from their state in ``community.general`` 1.2.0. |
| 15 |
The changes listed here are thus relative to the modules and plugins ``community.general.docker*``. |
| 16 |
|
| 17 |
|
| 18 |
All deprecation removals planned for ``community.general`` 2.0.0 have been |
| 19 |
applied. All deprecation removals scheduled for ``community.general`` 3.0.0 |
| 20 |
have been re-scheduled for ``community.docker`` 2.0.0. |
| 21 |
|
| 22 |
' |
| 23 |
removed_features: |
| 24 |
- docker_container - no longer returns ``ansible_facts`` (https://github.com/ansible-collections/community.docker/pull/1). |
| 25 |
- docker_container - the default of ``networks_cli_compatible`` changed to |
| 26 |
``true`` (https://github.com/ansible-collections/community.docker/pull/1). |
| 27 |
- docker_container - the unused option ``trust_image_content`` has been removed |
| 28 |
(https://github.com/ansible-collections/community.docker/pull/1). |
| 29 |
- docker_image - ``state=build`` has been removed. Use ``present`` instead |
| 30 |
(https://github.com/ansible-collections/community.docker/pull/1). |
| 31 |
- docker_image - the ``container_limits``, ``dockerfile``, ``http_timeout``, |
| 32 |
``nocache``, ``rm``, ``path``, ``buildargs``, ``pull`` have been removed. |
| 33 |
Use the corresponding suboptions of ``build`` instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 34 |
- docker_image - the ``force`` option has been removed. Use the more specific |
| 35 |
``force_*`` options instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 36 |
- docker_image - the ``source`` option is now mandatory (https://github.com/ansible-collections/community.docker/pull/1). |
| 37 |
- docker_image - the ``use_tls`` option has been removed. Use ``tls`` and |
| 38 |
``validate_certs`` instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 39 |
- docker_image - the default of the ``build.pull`` option changed to ``false`` |
| 40 |
(https://github.com/ansible-collections/community.docker/pull/1). |
| 41 |
- docker_image_facts - this alias is on longer available, use ``docker_image_info`` |
| 42 |
instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 43 |
- docker_network - no longer returns ``ansible_facts`` (https://github.com/ansible-collections/community.docker/pull/1). |
| 44 |
- docker_network - the ``ipam_options`` option has been removed. Use ``ipam_config`` |
| 45 |
instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 46 |
- docker_service - no longer returns ``ansible_facts`` (https://github.com/ansible-collections/community.docker/pull/1). |
| 47 |
- docker_swarm - ``state=inspect`` has been removed. Use ``docker_swarm_info`` |
| 48 |
instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 49 |
- docker_swarm_service - the ``constraints`` option has been removed. Use |
| 50 |
``placement.constraints`` instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 51 |
- docker_swarm_service - the ``limit_cpu`` and ``limit_memory`` options has |
| 52 |
been removed. Use the corresponding suboptions in ``limits`` instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 53 |
- docker_swarm_service - the ``log_driver`` and ``log_driver_options`` options |
| 54 |
has been removed. Use the corresponding suboptions in ``logging`` instead |
| 55 |
(https://github.com/ansible-collections/community.docker/pull/1). |
| 56 |
- docker_swarm_service - the ``reserve_cpu`` and ``reserve_memory`` options |
| 57 |
has been removed. Use the corresponding suboptions in ``reservations`` instead |
| 58 |
(https://github.com/ansible-collections/community.docker/pull/1). |
| 59 |
- docker_swarm_service - the ``restart_policy``, ``restart_policy_attempts``, |
| 60 |
``restart_policy_delay`` and ``restart_policy_window`` options has been |
| 61 |
removed. Use the corresponding suboptions in ``restart_config`` instead |
| 62 |
(https://github.com/ansible-collections/community.docker/pull/1). |
| 63 |
- docker_swarm_service - the ``update_delay``, ``update_parallelism``, ``update_failure_action``, |
| 64 |
``update_monitor``, ``update_max_failure_ratio`` and ``update_order`` options |
| 65 |
has been removed. Use the corresponding suboptions in ``update_config`` |
| 66 |
instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 67 |
- docker_volume - no longer returns ``ansible_facts`` (https://github.com/ansible-collections/community.docker/pull/1). |
| 68 |
- docker_volume - the ``force`` option has been removed. Use ``recreate`` |
| 69 |
instead (https://github.com/ansible-collections/community.docker/pull/1). |
| 70 |
fragments: |
| 71 |
- 0.1.0.yml |
| 72 |
- c.g-1118-docker_login-config-store.yml |
| 73 |
- c.g-1119-docker_container-device-reqests.yml |
| 74 |
- c.g-2.0.0-deprecations.yml |
| 75 |
release_date: '2020-10-30' |
| 76 |
1.0.0: |
| 77 |
changes: |
| 78 |
minor_changes: |
| 79 |
- Add collection-side support of the ``docker`` action group / module defaults |
| 80 |
group (https://github.com/ansible-collections/community.docker/pull/17). |
| 81 |
- docker_image - return docker build output (https://github.com/ansible-collections/community.general/pull/805). |
| 82 |
- docker_secret - add a warning when the secret does not have an ``ansible_key`` |
| 83 |
label but the ``force`` parameter is not set (https://github.com/ansible-collections/community.docker/issues/30, |
| 84 |
https://github.com/ansible-collections/community.docker/pull/31). |
| 85 |
release_summary: 'This is the first production (non-prerelease) release of ``community.docker``. |
| 86 |
|
| 87 |
' |
| 88 |
fragments: |
| 89 |
- 1.0.0.yml |
| 90 |
- 17-action-group.yml |
| 91 |
- 31-docker-secret.yml |
| 92 |
- community.general-805-docker_image-build-output.yml |
| 93 |
release_date: '2020-11-17' |
| 94 |
1.0.1: |
| 95 |
changes: |
| 96 |
bugfixes: |
| 97 |
- docker_container - the validation for ``capabilities`` in ``device_requests`` |
| 98 |
was incorrect (https://github.com/ansible-collections/community.docker/issues/42, |
| 99 |
https://github.com/ansible-collections/community.docker/pull/43). |
| 100 |
release_summary: Maintenance release with a bugfix for ``docker_container``. |
| 101 |
fragments: |
| 102 |
- 1.0.1.yml |
| 103 |
- 43-docker_container-device_requests.yml |
| 104 |
release_date: '2020-12-11' |
| 105 |
1.1.0: |
| 106 |
changes: |
| 107 |
bugfixes: |
| 108 |
- docker_image - if ``push=true`` is used with ``repository``, and the image |
| 109 |
does not need to be tagged, still push. This can happen if ``repository`` |
| 110 |
and ``name`` are equal (https://github.com/ansible-collections/community.docker/issues/52, |
| 111 |
https://github.com/ansible-collections/community.docker/pull/53). |
| 112 |
- docker_image - report error when loading a broken archive that contains |
| 113 |
no image (https://github.com/ansible-collections/community.docker/issues/46, |
| 114 |
https://github.com/ansible-collections/community.docker/pull/55). |
| 115 |
- docker_image - report error when the loaded archive does not contain the |
| 116 |
specified image (https://github.com/ansible-collections/community.docker/issues/41, |
| 117 |
https://github.com/ansible-collections/community.docker/pull/55). |
| 118 |
deprecated_features: |
| 119 |
- docker_container - currently ``published_ports`` can contain port mappings |
| 120 |
next to the special value ``all``, in which case the port mappings are ignored. |
| 121 |
This behavior is deprecated for community.docker 2.0.0, at which point it |
| 122 |
will either be forbidden, or this behavior will be properly implemented |
| 123 |
similar to how the Docker CLI tool handles this (https://github.com/ansible-collections/community.docker/issues/8, |
| 124 |
https://github.com/ansible-collections/community.docker/pull/60). |
| 125 |
minor_changes: |
| 126 |
- docker_container - support specifying ``cgroup_parent`` (https://github.com/ansible-collections/community.docker/issues/6, |
| 127 |
https://github.com/ansible-collections/community.docker/pull/59). |
| 128 |
- docker_container - when a container is started with ``detached=false``, |
| 129 |
``status`` is now also returned when it is 0 (https://github.com/ansible-collections/community.docker/issues/26, |
| 130 |
https://github.com/ansible-collections/community.docker/pull/58). |
| 131 |
- docker_image - support ``platform`` when building images (https://github.com/ansible-collections/community.docker/issues/22, |
| 132 |
https://github.com/ansible-collections/community.docker/pull/54). |
| 133 |
release_summary: Feature release with three new plugins and modules. |
| 134 |
fragments: |
| 135 |
- 1.1.0.yml |
| 136 |
- 53-docker_image-tag-push.yml |
| 137 |
- 54-docker_image-build-platform.yml |
| 138 |
- 55-docker_image-loading.yml |
| 139 |
- 58-docker_container-non-detached-status.yml |
| 140 |
- 59-docker_container-cgroup-parent.yml |
| 141 |
- 60-docker_container-publish-all.yml |
| 142 |
modules: |
| 143 |
- description: Return facts about whether the module runs in a Docker container |
| 144 |
name: current_container_facts |
| 145 |
namespace: '' |
| 146 |
plugins: |
| 147 |
connection: |
| 148 |
- description: Run tasks in docker containers |
| 149 |
name: docker_api |
| 150 |
namespace: null |
| 151 |
inventory: |
| 152 |
- description: Ansible dynamic inventory plugin for Docker containers. |
| 153 |
name: docker_containers |
| 154 |
namespace: null |
| 155 |
release_date: '2021-01-03' |
| 156 |
1.2.0: |
| 157 |
changes: |
| 158 |
bugfixes: |
| 159 |
- docker_container - allow IPv6 zones (RFC 4007) in bind IPs (https://github.com/ansible-collections/community.docker/pull/66). |
| 160 |
- docker_image - fix crash on loading images with versions of Docker SDK for |
| 161 |
Python before 2.5.0 (https://github.com/ansible-collections/community.docker/issues/72, |
| 162 |
https://github.com/ansible-collections/community.docker/pull/73). |
| 163 |
minor_changes: |
| 164 |
- docker_container - added ``default_host_ip`` option which allows to explicitly |
| 165 |
set the default IP string for published ports without explicitly specified |
| 166 |
IPs. When using IPv6 binds with Docker 20.10.2 or newer, this needs to be |
| 167 |
set to an empty string (``""``) (https://github.com/ansible-collections/community.docker/issues/70, |
| 168 |
https://github.com/ansible-collections/community.docker/pull/71). |
| 169 |
release_summary: Feature release with one new feature and two bugfixes. |
| 170 |
fragments: |
| 171 |
- 1.2.0.yml |
| 172 |
- 66-ipv6-zones.yml |
| 173 |
- 71-docker_container-default_host_ip.yml |
| 174 |
- 73-docker_image-fix-old-docker-py-version.yml |
| 175 |
release_date: '2021-01-25' |
| 176 |
1.2.1: |
| 177 |
changes: |
| 178 |
bugfixes: |
| 179 |
- docker connection plugin - fix Docker version parsing, as some docker versions |
| 180 |
have a leading ``v`` in the output of the command ``docker version --format |
| 181 |
"{{.Server.Version}}"`` (https://github.com/ansible-collections/community.docker/pull/76). |
| 182 |
release_summary: Bugfix release. |
| 183 |
fragments: |
| 184 |
- 1.2.1.yml |
| 185 |
- 76-leading-v-support-in-docker-version.yml |
| 186 |
release_date: '2021-01-28' |
| 187 |
1.2.2: |
| 188 |
changes: |
| 189 |
release_summary: Security bugfix release to address CVE-2021-20191. |
| 190 |
security_fixes: |
| 191 |
- docker_swarm - enabled ``no_log`` for the option ``signing_ca_key`` to prevent |
| 192 |
accidental disclosure (CVE-2021-20191, https://github.com/ansible-collections/community.docker/pull/80). |
| 193 |
fragments: |
| 194 |
- 1.2.2.yml |
| 195 |
- CVE-2021-20191_no_log.yml |
| 196 |
release_date: '2021-02-05' |
| 197 |
1.3.0: |
| 198 |
changes: |
| 199 |
bugfixes: |
| 200 |
- docker_container - fix healthcheck disabling idempotency issue with strict |
| 201 |
comparison (https://github.com/ansible-collections/community.docker/issues/85). |
| 202 |
- docker_image - prevent module failure when removing image that is removed |
| 203 |
between inspection and removal (https://github.com/ansible-collections/community.docker/pull/87). |
| 204 |
- docker_image - prevent module failure when removing non-existent image by |
| 205 |
ID (https://github.com/ansible-collections/community.docker/pull/87). |
| 206 |
- docker_image_info - prevent module failure when image vanishes between listing |
| 207 |
and inspection (https://github.com/ansible-collections/community.docker/pull/87). |
| 208 |
- docker_image_info - prevent module failure when querying non-existent image |
| 209 |
by ID (https://github.com/ansible-collections/community.docker/pull/87). |
| 210 |
minor_changes: |
| 211 |
- docker_container - add ``storage_opts`` option to specify storage options |
| 212 |
(https://github.com/ansible-collections/community.docker/issues/91, https://github.com/ansible-collections/community.docker/pull/93). |
| 213 |
- docker_image - allows to specify platform to pull for ``source=pull`` with |
| 214 |
new option ``pull_platform`` (https://github.com/ansible-collections/community.docker/issues/79, |
| 215 |
https://github.com/ansible-collections/community.docker/pull/89). |
| 216 |
- docker_image - properly support image IDs (hashes) for loading and tagging |
| 217 |
images (https://github.com/ansible-collections/community.docker/issues/86, |
| 218 |
https://github.com/ansible-collections/community.docker/pull/87). |
| 219 |
- docker_swarm_service - adding support for maximum number of tasks per node |
| 220 |
(``replicas_max_per_node``) when running swarm service in replicated mode. |
| 221 |
Introduced in API 1.40 (https://github.com/ansible-collections/community.docker/issues/7, |
| 222 |
https://github.com/ansible-collections/community.docker/pull/92). |
| 223 |
release_summary: Regular feature and bugfix release. |
| 224 |
fragments: |
| 225 |
- 1.3.0.yml |
| 226 |
- 87-docker_image-load-image-ids.yml |
| 227 |
- 88-docker_container-healthcheck.yml |
| 228 |
- 89-docker_image-pull-platform.yml |
| 229 |
- 92-replicas-max-per-node.yml |
| 230 |
- 93-docker_container-storage_opts.yml |
| 231 |
modules: |
| 232 |
- description: Load docker image(s) from archives |
| 233 |
name: docker_image_load |
| 234 |
namespace: '' |
| 235 |
- description: Manage Docker plugins |
| 236 |
name: docker_plugin |
| 237 |
namespace: '' |
| 238 |
release_date: '2021-03-08' |
| 239 |
1.4.0: |
| 240 |
changes: |
| 241 |
breaking_changes: |
| 242 |
- docker_swarm - if ``join_token`` is specified, a returned join token with |
| 243 |
the same value will be replaced by ``VALUE_SPECIFIED_IN_NO_LOG_PARAMETER``. |
| 244 |
Make sure that you do not blindly use the join tokens from the return value |
| 245 |
of this module when the module is invoked with ``join_token`` specified! |
| 246 |
This breaking change appears in a minor release since it is necessary to |
| 247 |
fix a security issue (https://github.com/ansible-collections/community.docker/pull/103). |
| 248 |
bugfixes: |
| 249 |
- '``docker_swarm_service`` - fix KeyError on caused by reference to deprecated |
| 250 |
option ``update_failure_action`` (https://github.com/ansible-collections/community.docker/pull/100).' |
| 251 |
- docker_swarm_service - mark ``secrets`` module option with ``no_log=False`` |
| 252 |
since it does not leak secrets (https://github.com/ansible-collections/community.general/pull/2001). |
| 253 |
minor_changes: |
| 254 |
- docker_swarm_service - change ``publish.published_port`` option from mandatory |
| 255 |
to optional. Docker will assign random high port if not specified (https://github.com/ansible-collections/community.docker/issues/99). |
| 256 |
release_summary: Security release to address another potential secret leak. |
| 257 |
Also includes regular bugfixes and features. |
| 258 |
security_fixes: |
| 259 |
- docker_swarm - the ``join_token`` option is now marked as ``no_log`` so |
| 260 |
it is no longer written into logs (https://github.com/ansible-collections/community.docker/pull/103). |
| 261 |
fragments: |
| 262 |
- 1.4.0.yml |
| 263 |
- 100-fix-update_failture_action-keyerror-in-docker_swarm_service.yaml |
| 264 |
- 101-make-service-published-port-optional.yaml |
| 265 |
- 102-no_log-false.yml |
| 266 |
- 103-docker_swarm-join_token.yml |
| 267 |
release_date: '2021-03-14' |
| 268 |
1.5.0: |
| 269 |
changes: |
| 270 |
bugfixes: |
| 271 |
- all modules - use ``to_native`` to convert exceptions to strings (https://github.com/ansible-collections/community.docker/pull/121). |
| 272 |
minor_changes: |
| 273 |
- Add the ``use_ssh_client`` option to most docker modules and plugins (https://github.com/ansible-collections/community.docker/issues/108, |
| 274 |
https://github.com/ansible-collections/community.docker/pull/114). |
| 275 |
release_summary: Regular feature release. |
| 276 |
fragments: |
| 277 |
- 1.5.0.yml |
| 278 |
- 114-use_ssh_client.yml |
| 279 |
- 121-exception-handling.yml |
| 280 |
modules: |
| 281 |
- description: Execute command in a docker container |
| 282 |
name: docker_container_exec |
| 283 |
namespace: '' |
| 284 |
release_date: '2021-04-11' |
| 285 |
1.6.0: |
| 286 |
changes: |
| 287 |
bugfixes: |
| 288 |
- 'docker-compose - fix not pulling when ``state: present`` and ``stopped: |
| 289 |
true`` (https://github.com/ansible-collections/community.docker/issues/12, |
| 290 |
https://github.com/ansible-collections/community.docker/pull/119).' |
| 291 |
- docker_plugin - also configure plugin after installing (https://github.com/ansible-collections/community.docker/issues/118, |
| 292 |
https://github.com/ansible-collections/community.docker/pull/135). |
| 293 |
- docker_swarm_services - avoid crash during idempotence check if ``published_port`` |
| 294 |
is not specified (https://github.com/ansible-collections/community.docker/issues/107, |
| 295 |
https://github.com/ansible-collections/community.docker/pull/136). |
| 296 |
deprecated_features: |
| 297 |
- docker_* modules and plugins, except ``docker_swarm`` connection plugin |
| 298 |
and ``docker_compose`` and ``docker_stack*` modules - the current default |
| 299 |
``localhost`` for ``tls_hostname`` is deprecated. In community.docker 2.0.0 |
| 300 |
it will be computed from ``docker_host`` instead (https://github.com/ansible-collections/community.docker/pull/134). |
| 301 |
minor_changes: |
| 302 |
- common module utils - correct error messages for guiding to install proper |
| 303 |
Docker SDK for Python module (https://github.com/ansible-collections/community.docker/pull/125). |
| 304 |
- 'docker_container - allow ``memory_swap: -1`` to set memory swap limit to |
| 305 |
unlimited. This is useful when the user cannot set memory swap limits due |
| 306 |
to cgroup limitations or other reasons, as by default Docker will try to |
| 307 |
set swap usage to two times the value of ``memory`` (https://github.com/ansible-collections/community.docker/pull/138).' |
| 308 |
release_summary: Regular bugfix and feature release. |
| 309 |
fragments: |
| 310 |
- 1.6.0.yml |
| 311 |
- 12-correct_pull_wo_starting.yaml |
| 312 |
- 125-correct-error-message-for-docker-sdk-version.yaml |
| 313 |
- 134-tls_hostname.yml |
| 314 |
- 135-docker_plugin-config.yml |
| 315 |
- 136-docker_swarm_service-fix-idempotence-bug.yml |
| 316 |
- 138-docker_container-allow-memory-swap-unlimited.yml |
| 317 |
release_date: '2021-05-11' |
| 318 |
1.6.1: |
| 319 |
changes: |
| 320 |
bugfixes: |
| 321 |
- docker_* modules and plugins, except ``docker_swarm`` connection plugin |
| 322 |
and ``docker_compose`` and ``docker_stack*` modules - only emit ``tls_hostname`` |
| 323 |
deprecation message if TLS is actually used (https://github.com/ansible-collections/community.docker/pull/143). |
| 324 |
release_summary: Bugfix release to reduce deprecation warning spam. |
| 325 |
fragments: |
| 326 |
- 1.6.1.yml |
| 327 |
- 143-tls_hostname-deprecation.yml |
| 328 |
release_date: '2021-05-17' |
| 329 |
1.7.0: |
| 330 |
changes: |
| 331 |
minor_changes: |
| 332 |
- docker_image - allow to tag images by ID (https://github.com/ansible-collections/community.docker/pull/149). |
| 333 |
release_summary: Small feature and bugfix release. |
| 334 |
fragments: |
| 335 |
- 1.7.0.yml |
| 336 |
- 149-docker_image-tagging.yml |
| 337 |
release_date: '2021-06-08' |
| 338 |
1.8.0: |
| 339 |
changes: |
| 340 |
bugfixes: |
| 341 |
- 'docker_compose - fix idempotence bug when using ``stopped: true`` (https://github.com/ansible-collections/community.docker/issues/142, |
| 342 |
https://github.com/ansible-collections/community.docker/pull/159).' |
| 343 |
minor_changes: |
| 344 |
- Avoid internal ansible-core module_utils in favor of equivalent public API |
| 345 |
available since at least Ansible 2.9 (https://github.com/ansible-collections/community.docker/pull/164). |
| 346 |
- docker_compose - added ``profiles`` option to specify service profiles when |
| 347 |
starting services (https://github.com/ansible-collections/community.docker/pull/167). |
| 348 |
- docker_containers inventory plugin - when ``connection_type=docker-api``, |
| 349 |
now pass Docker daemon connection options from inventory plugin to connection |
| 350 |
plugin. This can be disabled by setting ``configure_docker_daemon=false`` |
| 351 |
(https://github.com/ansible-collections/community.docker/pull/157). |
| 352 |
- docker_host_info - allow values for keys in ``containers_filters``, ``images_filters``, |
| 353 |
``networks_filters``, and ``volumes_filters`` to be passed as YAML lists |
| 354 |
(https://github.com/ansible-collections/community.docker/pull/160). |
| 355 |
- docker_plugin - added ``alias`` option to specify local names for docker |
| 356 |
plugins (https://github.com/ansible-collections/community.docker/pull/161). |
| 357 |
release_summary: Regular bugfix and feature release. |
| 358 |
fragments: |
| 359 |
- 1.8.0.yml |
| 360 |
- 157-inventory-connection-options.yml |
| 361 |
- 159-docker_compose-idempotence-fix.yml |
| 362 |
- 160-docker_host_info-label-fitler-lists.yml |
| 363 |
- 161-docker_plugin-alias-option.yml |
| 364 |
- 167-docker_compose-profiles-option.yml |
| 365 |
- ansible-core-_text.yml |
| 366 |
release_date: '2021-06-28' |
| 367 |
1.9.0: |
| 368 |
changes: |
| 369 |
bugfixes: |
| 370 |
- docker_compose - fixes task failures when bringing up services while using |
| 371 |
``docker-compose <1.17.0`` (https://github.com/ansible-collections/community.docker/issues/180). |
| 372 |
- docker_container - make sure to also return ``container`` on ``detached=false`` |
| 373 |
when status code is non-zero (https://github.com/ansible-collections/community.docker/pull/178). |
| 374 |
- docker_stack_info - make sure that module isn't skipped in check mode (https://github.com/ansible-collections/community.docker/pull/183). |
| 375 |
- docker_stack_task_info - make sure that module isn't skipped in check mode |
| 376 |
(https://github.com/ansible-collections/community.docker/pull/183). |
| 377 |
deprecated_features: |
| 378 |
- docker_container - the new ``command_handling``'s default value, ``compatibility``, |
| 379 |
is deprecated and will change to ``correct`` in community.docker 3.0.0. |
| 380 |
A deprecation warning is emitted by the module in cases where the behavior |
| 381 |
will change. Please note that ansible-core will output a deprecation warning |
| 382 |
only once, so if it is shown for an earlier task, there could be more tasks |
| 383 |
with this warning where it is not shown (https://github.com/ansible-collections/community.docker/pull/186). |
| 384 |
minor_changes: |
| 385 |
- docker_* modules - include ``ImportError`` traceback when reporting that |
| 386 |
Docker SDK for Python could not be found (https://github.com/ansible-collections/community.docker/pull/188). |
| 387 |
- docker_compose - added ``env_file`` option for specifying custom environment |
| 388 |
files (https://github.com/ansible-collections/community.docker/pull/174). |
| 389 |
- docker_container - added ``publish_all_ports`` option to publish all exposed |
| 390 |
ports to random ports except those explicitly bound with ``published_ports`` |
| 391 |
(this was already added in community.docker 1.8.0) (https://github.com/ansible-collections/community.docker/pull/162). |
| 392 |
- docker_container - added new ``command_handling`` option with current deprecated |
| 393 |
default value ``compatibility`` which allows to control how the module handles |
| 394 |
shell quoting when interpreting lists, and how the module handles empty |
| 395 |
lists/strings. The default will switch to ``correct`` in community.docker |
| 396 |
3.0.0 (https://github.com/ansible-collections/community.docker/pull/186). |
| 397 |
- docker_container - lifted restriction preventing the creation of anonymous |
| 398 |
volumes with the ``mounts`` option (https://github.com/ansible-collections/community.docker/pull/181). |
| 399 |
release_summary: New bugfixes and features release. |
| 400 |
fragments: |
| 401 |
- 1.9.0.yml |
| 402 |
- 162-docker_container_publish_all_option.yml |
| 403 |
- 174-docker_compose-env_file.yml |
| 404 |
- 178-docker_container-container.yml |
| 405 |
- 181-docker_container-allow-anonymous-volume-mounts.yml |
| 406 |
- 182-docker_compose-fix-start-keyword-failures.yml |
| 407 |
- 183-info-check_mode.yml |
| 408 |
- 186-docker_container-command-entrypoint.yml |
| 409 |
- 188-improve-import-errors.yml |
| 410 |
plugins: |
| 411 |
connection: |
| 412 |
- description: execute on host running controller container |
| 413 |
name: nsenter |
| 414 |
namespace: null |
| 415 |
release_date: '2021-08-03' |
| 416 |
1.9.1: |
| 417 |
changes: |
| 418 |
bugfixes: |
| 419 |
- docker_compose - fixed incorrect ``changed`` status for services with ``profiles`` |
| 420 |
defined, but none enabled (https://github.com/ansible-collections/community.docker/pull/192). |
| 421 |
release_summary: Regular bugfix release. |
| 422 |
fragments: |
| 423 |
- 1.9.1.yml |
| 424 |
- 192-docker_compose-profiles-idempotency-fix.yml |
| 425 |
release_date: '2021-08-29' |
| 426 |
1.10.0: |
| 427 |
changes: |
| 428 |
minor_changes: |
| 429 |
- Add the modules docker_container_exec, docker_image_load and docker_plugin |
| 430 |
to the ``docker`` module defaults group (https://github.com/ansible-collections/community.docker/pull/209). |
| 431 |
- docker_config - add option ``data_src`` to read configuration data from |
| 432 |
target (https://github.com/ansible-collections/community.docker/issues/64, |
| 433 |
https://github.com/ansible-collections/community.docker/pull/203). |
| 434 |
- docker_secret - add option ``data_src`` to read secret data from target |
| 435 |
(https://github.com/ansible-collections/community.docker/issues/64, https://github.com/ansible-collections/community.docker/pull/203). |
| 436 |
release_summary: Regular feature and bugfix release. |
| 437 |
fragments: |
| 438 |
- 1.10.0.yml |
| 439 |
- 203-docker_secret-config-data_src.yml |
| 440 |
- 209-action-group.yml |
| 441 |
release_date: '2021-10-05' |
| 442 |
2.0.0: |
| 443 |
changes: |
| 444 |
breaking_changes: |
| 445 |
- docker_compose - fixed ``timeout`` defaulting behavior so that ``stop_grace_period``, |
| 446 |
if defined in the compose file, will be used if ``timeout`` is not specified |
| 447 |
(https://github.com/ansible-collections/community.docker/pull/163). |
| 448 |
deprecated_features: |
| 449 |
- docker_container - using the special value ``all`` in ``published_ports`` |
| 450 |
has been deprecated. Use ``publish_all_ports=true`` instead (https://github.com/ansible-collections/community.docker/pull/210). |
| 451 |
release_summary: New major release with some deprecations removed and a breaking |
| 452 |
change in the ``docker_compose`` module regarding the ``timeout`` parameter. |
| 453 |
removed_features: |
| 454 |
- docker_container - the default value of ``container_default_behavior`` changed |
| 455 |
to ``no_defaults`` (https://github.com/ansible-collections/community.docker/pull/210). |
| 456 |
- docker_container - the default value of ``network_mode`` is now the name |
| 457 |
of the first network specified in ``networks`` if such are specified and |
| 458 |
``networks_cli_compatible=true`` (https://github.com/ansible-collections/community.docker/pull/210). |
| 459 |
- docker_container - the special value ``all`` can no longer be used in ``published_ports`` |
| 460 |
next to other values. Please use ``publish_all_ports=true`` instead (https://github.com/ansible-collections/community.docker/pull/210). |
| 461 |
- docker_login - removed the ``email`` option (https://github.com/ansible-collections/community.docker/pull/210). |
| 462 |
fragments: |
| 463 |
- 163-docker_compose-timeout-fix.yml |
| 464 |
- 2.0.0.yml |
| 465 |
- 210-deprecations.yml |
| 466 |
release_date: '2021-10-21' |
| 467 |
2.0.1: |
| 468 |
changes: |
| 469 |
release_summary: Maintenance release with some documentation fixes. |
| 470 |
fragments: |
| 471 |
- 2.0.1.yml |
| 472 |
release_date: '2021-11-13' |
| 473 |
2.0.2: |
| 474 |
changes: |
| 475 |
bugfixes: |
| 476 |
- docker_api connection plugin - avoid passing an unnecessary argument to |
| 477 |
a Docker SDK for Python call that is only supported by version 3.0.0 or |
| 478 |
later (https://github.com/ansible-collections/community.docker/pull/243). |
| 479 |
- docker_container_exec - ``chdir`` is only supported since Docker SDK for |
| 480 |
Python 3.0.0. Make sure that this option can only use when 3.0.0 or later |
| 481 |
is installed, and prevent passing this parameter on when ``chdir`` is not |
| 482 |
provided to this module (https://github.com/ansible-collections/community.docker/pull/243, |
| 483 |
https://github.com/ansible-collections/community.docker/issues/242). |
| 484 |
- nsenter connection plugin - ensure the ``nsenter_pid`` option is retrieved |
| 485 |
in ``_connect`` instead of ``__init__`` to prevent a crash due to bad initialization |
| 486 |
order (https://github.com/ansible-collections/community.docker/pull/249). |
| 487 |
- nsenter connection plugin - replace the use of ``--all-namespaces`` with |
| 488 |
specific namespaces to support compatibility with Busybox nsenter (used |
| 489 |
on, for example, Alpine containers) (https://github.com/ansible-collections/community.docker/pull/249). |
| 490 |
release_summary: Bugfix release. |
| 491 |
fragments: |
| 492 |
- 2.0.2.yml |
| 493 |
- 243-docker_container_exec-chdir.yml |
| 494 |
- 249-nsenter-fixes.yml |
| 495 |
release_date: '2021-12-09' |
| 496 |
2.1.0: |
| 497 |
changes: |
| 498 |
bugfixes: |
| 499 |
- Various modules and plugins - use vendored version of ``distutils.version`` |
| 500 |
included in ansible-core 2.12 if available. This avoids breakage when ``distutils`` |
| 501 |
is removed from the standard library of Python 3.12. Note that ansible-core |
| 502 |
2.11, ansible-base 2.10 and Ansible 2.9 are right now not compatible with |
| 503 |
Python 3.12, hence this fix does not target these ansible-core/-base/2.9 |
| 504 |
versions (https://github.com/ansible-collections/community.docker/pull/258). |
| 505 |
- docker connection plugin - replace deprecated ``distutils.spawn.find_executable`` |
| 506 |
with Ansible's ``get_bin_path`` to find the ``docker`` executable (https://github.com/ansible-collections/community.docker/pull/257). |
| 507 |
- docker_container_exec - disallow using the ``chdir`` option for Docker API |
| 508 |
before 1.35 (https://github.com/ansible-collections/community.docker/pull/253). |
| 509 |
minor_changes: |
| 510 |
- docker_container_exec - add ``detach`` parameter (https://github.com/ansible-collections/community.docker/issues/250, |
| 511 |
https://github.com/ansible-collections/community.docker/pull/255). |
| 512 |
- docker_container_exec - add ``env`` option (https://github.com/ansible-collections/community.docker/issues/248, |
| 513 |
https://github.com/ansible-collections/community.docker/pull/254). |
| 514 |
release_summary: Feature and bugfix release. |
| 515 |
fragments: |
| 516 |
- 2.1.0.yml |
| 517 |
- 253-chdir-min-version.yml |
| 518 |
- 254-docker_container_exec-env.yml |
| 519 |
- 255-docker_container_exec-detach.yml |
| 520 |
- 257-remove-distutils-spawn.yml |
| 521 |
- 258-distutils.version.yml |
| 522 |
release_date: '2022-01-04' |
| 523 |
2.1.1: |
| 524 |
changes: |
| 525 |
bugfixes: |
| 526 |
- Fix unintended breaking change caused by `an earlier fix <https://github.com/ansible-collections/community.docker/pull/258>`_ |
| 527 |
by vendoring the deprecated Python standard library ``distutils.version`` |
| 528 |
until this collection stops supporting Ansible 2.9 and ansible-base 2.10 |
| 529 |
(https://github.com/ansible-collections/community.docker/issues/267, https://github.com/ansible-collections/community.docker/pull/269). |
| 530 |
release_summary: Emergency release to amend breaking change in previous release. |
| 531 |
fragments: |
| 532 |
- 2.1.1.yml |
| 533 |
- 269-distutils-version-fix.yml |
| 534 |
release_date: '2022-01-05' |
| 535 |
2.2.0: |
| 536 |
changes: |
| 537 |
bugfixes: |
| 538 |
- docker_container, docker_image - adjust image finding code to peculiarities |
| 539 |
of ``podman-docker``'s API emulation when Docker short names like ``redis`` |
| 540 |
are used (https://github.com/ansible-collections/community.docker/issues/292). |
| 541 |
minor_changes: |
| 542 |
- docker_config - add support for rolling update, set ``rolling_versions`` |
| 543 |
to ``true`` to enable (https://github.com/ansible-collections/community.docker/pull/295, |
| 544 |
https://github.com/ansible-collections/community.docker/issues/109). |
| 545 |
- docker_secret - add support for rolling update, set ``rolling_versions`` |
| 546 |
to ``true`` to enable (https://github.com/ansible-collections/community.docker/pull/293, |
| 547 |
https://github.com/ansible-collections/community.docker/issues/21). |
| 548 |
- docker_swarm_service - add support for setting capabilities with the ``cap_add`` |
| 549 |
and ``cap_drop`` parameters. Usage is the same as with the ``capabilities`` |
| 550 |
and ``cap_drop`` parameters for ``docker_container`` (https://github.com/ansible-collections/community.docker/pull/294). |
| 551 |
release_summary: Regular feature and bugfix release. |
| 552 |
fragments: |
| 553 |
- 2.2.0.yml |
| 554 |
- 270-rolling-secrets.yml |
| 555 |
- 271-swarm-service-capabilities.yml |
| 556 |
- 272-rolling-configs.yml |
| 557 |
- 292-docker-podman-compatibility.yml |
| 558 |
release_date: '2022-02-21' |
| 559 |
2.2.1: |
| 560 |
changes: |
| 561 |
bugfixes: |
| 562 |
- docker_compose - fix Python 3 type error when extracting warnings or errors |
| 563 |
from docker-compose's output (https://github.com/ansible-collections/community.docker/pull/305). |
| 564 |
release_summary: Regular bugfix release. |
| 565 |
fragments: |
| 566 |
- 2.2.1.yml |
| 567 |
- 305-docker_compose-errors-warnings.yml |
| 568 |
release_date: '2022-03-14' |
| 569 |
2.3.0: |
| 570 |
changes: |
| 571 |
bugfixes: |
| 572 |
- docker connection plugin - fix option handling to be compatible with ansible-core |
| 573 |
2.13 (https://github.com/ansible-collections/community.docker/pull/297, |
| 574 |
https://github.com/ansible-collections/community.docker/issues/307). |
| 575 |
- docker_api connection plugin - fix option handling to be compatible with |
| 576 |
ansible-core 2.13 (https://github.com/ansible-collections/community.docker/pull/308). |
| 577 |
minor_changes: |
| 578 |
- docker connection plugin - implement connection reset by clearing internal |
| 579 |
container user cache (https://github.com/ansible-collections/community.docker/pull/312). |
| 580 |
- docker connection plugin - simplify ``actual_user`` handling code (https://github.com/ansible-collections/community.docker/pull/311). |
| 581 |
- docker connection plugin - the plugin supports new ways to define the timeout. |
| 582 |
These are the ``ANSIBLE_DOCKER_TIMEOUT`` environment variable, the ``timeout`` |
| 583 |
setting in the ``docker_connection`` section of ``ansible.cfg``, and the |
| 584 |
``ansible_docker_timeout`` variable (https://github.com/ansible-collections/community.docker/pull/297). |
| 585 |
- docker_api connection plugin - implement connection reset by clearing internal |
| 586 |
container user/group ID cache (https://github.com/ansible-collections/community.docker/pull/312). |
| 587 |
- docker_api connection plugin - the plugin supports new ways to define the |
| 588 |
timeout. These are the ``ANSIBLE_DOCKER_TIMEOUT`` environment variable, |
| 589 |
the ``timeout`` setting in the ``docker_connection`` section of ``ansible.cfg``, |
| 590 |
and the ``ansible_docker_timeout`` variable (https://github.com/ansible-collections/community.docker/pull/308). |
| 591 |
release_summary: Regular feature and bugfix release. |
| 592 |
fragments: |
| 593 |
- 2.3.0.yml |
| 594 |
- 297-docker-connection-config.yml |
| 595 |
- 308-docker_api-connection-config.yml |
| 596 |
- 311-docker-actual_user.yml |
| 597 |
- 312-docker-connection-reset.yml |
| 598 |
release_date: '2022-03-28' |
| 599 |
2.4.0: |
| 600 |
changes: |
| 601 |
bugfixes: |
| 602 |
- docker connection plugin - make sure that ``docker_extra_args`` is used |
| 603 |
for querying the Docker version. Also ensures that the Docker version is |
| 604 |
only queried when needed. This is currently the case if a remote user is |
| 605 |
specified (https://github.com/ansible-collections/community.docker/issues/325, |
| 606 |
https://github.com/ansible-collections/community.docker/pull/327). |
| 607 |
minor_changes: |
| 608 |
- Prepare collection for inclusion in an Execution Environment by declaring |
| 609 |
its dependencies. The ``docker_stack*`` modules are not supported (https://github.com/ansible-collections/community.docker/pull/336). |
| 610 |
- current_container_facts - add detection for GitHub Actions (https://github.com/ansible-collections/community.docker/pull/336). |
| 611 |
- docker_container - support returning Docker container log output when using |
| 612 |
Docker's ``local`` logging driver, an optimized local logging driver introduced |
| 613 |
in Docker 18.09 (https://github.com/ansible-collections/community.docker/pull/337). |
| 614 |
release_summary: Regular feature and bugfix release. |
| 615 |
fragments: |
| 616 |
- 2.4.0.yml |
| 617 |
- 327-connection-fix.yml |
| 618 |
- 336-ee.yml |
| 619 |
- 337-container-output-from-local-logging-driver.yml |
| 620 |
release_date: '2022-04-25' |
| 621 |
2.5.0: |
| 622 |
changes: |
| 623 |
minor_changes: |
| 624 |
- docker_config - add support for ``template_driver`` with one option ``golang`` |
| 625 |
(https://github.com/ansible-collections/community.docker/issues/332, https://github.com/ansible-collections/community.docker/pull/345). |
| 626 |
- docker_swarm - adds ``data_path_addr`` parameter during swarm initialization |
| 627 |
or when joining (https://github.com/ansible-collections/community.docker/issues/339). |
| 628 |
release_summary: Regular feature release. |
| 629 |
fragments: |
| 630 |
- 2.5.0.yml |
| 631 |
- 344-adds-data-path-addr.yml |
| 632 |
- 345-docker_config-template-driver.yml |
| 633 |
release_date: '2022-05-14' |
| 634 |
2.5.1: |
| 635 |
changes: |
| 636 |
bugfixes: |
| 637 |
- Include ``PSF-license.txt`` file for ``plugins/module_utils/_version.py``. |
| 638 |
release_summary: Maintenance release. |
| 639 |
fragments: |
| 640 |
- 2.5.1.yml |
| 641 |
- psf-license.yml |
| 642 |
release_date: '2022-05-16' |
| 643 |
2.6.0: |
| 644 |
changes: |
| 645 |
bugfixes: |
| 646 |
- docker_container - fail with a meaningful message instead of crashing if |
| 647 |
a port is specified with more than three colon-separated parts (https://github.com/ansible-collections/community.docker/pull/367, |
| 648 |
https://github.com/ansible-collections/community.docker/issues/365). |
| 649 |
- docker_container - remove unused code that will cause problems with Python |
| 650 |
3.13 (https://github.com/ansible-collections/community.docker/pull/354). |
| 651 |
deprecated_features: |
| 652 |
- Support for Ansible 2.9 and ansible-base 2.10 is deprecated, and will be |
| 653 |
removed in the next major release (community.docker 3.0.0). Some modules |
| 654 |
might still work with these versions afterwards, but we will no longer keep |
| 655 |
compatibility code that was needed to support them (https://github.com/ansible-collections/community.docker/pull/361). |
| 656 |
- The dependency on docker-compose for Execution Environments is deprecated |
| 657 |
and will be removed in community.docker 3.0.0. The `Python docker-compose |
| 658 |
library <https://pypi.org/project/docker-compose/>`__ is unmaintained and |
| 659 |
can cause dependency issues. You can manually still install it in an Execution |
| 660 |
Environment when needed (https://github.com/ansible-collections/community.docker/pull/373). |
| 661 |
- Various modules - the default of ``tls_hostname`` that was supposed to be |
| 662 |
removed in community.docker 2.0.0 will now be removed in version 3.0.0 (https://github.com/ansible-collections/community.docker/pull/362). |
| 663 |
- docker_stack - the return values ``out`` and ``err`` that were supposed |
| 664 |
to be removed in community.docker 2.0.0 will now be removed in version 3.0.0 |
| 665 |
(https://github.com/ansible-collections/community.docker/pull/362). |
| 666 |
minor_changes: |
| 667 |
- docker_container - added ``image_label_mismatch`` parameter (https://github.com/ansible-collections/community.docker/issues/314, |
| 668 |
https://github.com/ansible-collections/community.docker/pull/370). |
| 669 |
release_summary: Bugfix and feature release. |
| 670 |
fragments: |
| 671 |
- 2.6.0.yml |
| 672 |
- 354-remove-dead-code.yml |
| 673 |
- 362-deprecations.yml |
| 674 |
- 367-docker_container-ports-validation.yml |
| 675 |
- 370-add-image-label-mismatch.yml |
| 676 |
- 373-deprecate-docker-compose-dependency.yml |
| 677 |
- deprecate-ansible-2.9-2.10.yml |
| 678 |
release_date: '2022-05-24' |
| 679 |
2.7.0: |
| 680 |
changes: |
| 681 |
bugfixes: |
| 682 |
- Docker SDK for Python based modules and plugins - if the API version is |
| 683 |
specified as an option, use that one to validate API version requirements |
| 684 |
of module/plugin options instead of the latest API version supported by |
| 685 |
the Docker daemon. This also avoids one unnecessary API call per module/plugin |
| 686 |
(https://github.com/ansible-collections/community.docker/pull/389). |
| 687 |
deprecated_features: |
| 688 |
- Support for Docker API version 1.20 to 1.24 has been deprecated and will |
| 689 |
be removed in community.docker 3.0.0. The first Docker version supporting |
| 690 |
API version 1.25 was Docker 1.13, released in January 2017. This affects |
| 691 |
the modules ``docker_container``, ``docker_container_exec``, ``docker_container_info``, |
| 692 |
``docker_compose``, ``docker_login``, ``docker_image``, ``docker_image_info``, |
| 693 |
``docker_image_load``, ``docker_host_info``, ``docker_network``, ``docker_network_info``, |
| 694 |
``docker_node_info``, ``docker_swarm_info``, ``docker_swarm_service``, ``docker_swarm_service_info``, |
| 695 |
``docker_volume_info``, and ``docker_volume``, whose minimally supported |
| 696 |
API version is between 1.20 and 1.24 (https://github.com/ansible-collections/community.docker/pull/396). |
| 697 |
- Support for Python 2.6 is deprecated and will be removed in the next major |
| 698 |
release (community.docker 3.0.0). Some modules might still work with Python |
| 699 |
2.6, but we will no longer try to ensure compatibility (https://github.com/ansible-collections/community.docker/pull/388). |
| 700 |
minor_changes: |
| 701 |
- Move common utility functions from the ``common`` module_util to a new module_util |
| 702 |
called ``util``. This should not have any user-visible effect (https://github.com/ansible-collections/community.docker/pull/390). |
| 703 |
release_summary: Bugfix and deprecation release. The next 2.x.y releases will |
| 704 |
only be bugfix releases, the next expect minor/major release will be 3.0.0 |
| 705 |
with some major changes. |
| 706 |
fragments: |
| 707 |
- 2.7.0.yml |
| 708 |
- 389-api-version.yml |
| 709 |
- 390-util.yml |
| 710 |
- 397-deprecate-docker-api-1.24.yml |
| 711 |
- python-2.6.yml |
| 712 |
release_date: '2022-07-02' |
| 713 |
3.0.0-a1: |
| 714 |
changes: |
| 715 |
breaking_changes: |
| 716 |
- This collection does not work with ansible-core 2.11 on Python 3.12+. Please |
| 717 |
either upgrade to ansible-core 2.12+, or use Python 3.11 or earlier (https://github.com/ansible-collections/community.docker/pull/271). |
| 718 |
major_changes: |
| 719 |
- The collection now contains vendored code from the Docker SDK for Python |
| 720 |
to talk to the Docker daemon. Modules and plugins using this code no longer |
| 721 |
need the Docker SDK for Python installed on the machine the module or plugin |
| 722 |
is running on (https://github.com/ansible-collections/community.docker/pull/398). |
| 723 |
- docker_api connection plugin - no longer uses the Docker SDK for Python. |
| 724 |
It requires ``requests`` to be installed, and depending on the features |
| 725 |
used has some more requirements. If the Docker SDK for Python is installed, |
| 726 |
these requirements are likely met (https://github.com/ansible-collections/community.docker/pull/414). |
| 727 |
- docker_container_exec - no longer uses the Docker SDK for Python. It requires |
| 728 |
``requests`` to be installed, and depending on the features used has some |
| 729 |
more requirements. If the Docker SDK for Python is installed, these requirements |
| 730 |
are likely met (https://github.com/ansible-collections/community.docker/pull/401). |
| 731 |
- docker_container_info - no longer uses the Docker SDK for Python. It requires |
| 732 |
``requests`` to be installed, and depending on the features used has some |
| 733 |
more requirements. If the Docker SDK for Python is installed, these requirements |
| 734 |
are likely met (https://github.com/ansible-collections/community.docker/pull/402). |
| 735 |
- docker_containers inventory plugin - no longer uses the Docker SDK for Python. |
| 736 |
It requires ``requests`` to be installed, and depending on the features |
| 737 |
used has some more requirements. If the Docker SDK for Python is installed, |
| 738 |
these requirements are likely met (https://github.com/ansible-collections/community.docker/pull/413). |
| 739 |
- docker_host_info - no longer uses the Docker SDK for Python. It requires |
| 740 |
``requests`` to be installed, and depending on the features used has some |
| 741 |
more requirements. If the Docker SDK for Python is installed, these requirements |
| 742 |
are likely met (https://github.com/ansible-collections/community.docker/pull/403). |
| 743 |
- docker_image - no longer uses the Docker SDK for Python. It requires ``requests`` |
| 744 |
to be installed, and depending on the features used has some more requirements. |
| 745 |
If the Docker SDK for Python is installed, these requirements are likely |
| 746 |
met (https://github.com/ansible-collections/community.docker/pull/404). |
| 747 |
- docker_image_info - no longer uses the Docker SDK for Python. It requires |
| 748 |
``requests`` to be installed, and depending on the features used has some |
| 749 |
more requirements. If the Docker SDK for Python is installed, these requirements |
| 750 |
are likely met (https://github.com/ansible-collections/community.docker/pull/405). |
| 751 |
- docker_image_load - no longer uses the Docker SDK for Python. It requires |
| 752 |
``requests`` to be installed, and depending on the features used has some |
| 753 |
more requirements. If the Docker SDK for Python is installed, these requirements |
| 754 |
are likely met (https://github.com/ansible-collections/community.docker/pull/406). |
| 755 |
- docker_login - no longer uses the Docker SDK for Python. It requires ``requests`` |
| 756 |
to be installed, and depending on the features used has some more requirements. |
| 757 |
If the Docker SDK for Python is installed, these requirements are likely |
| 758 |
met (https://github.com/ansible-collections/community.docker/pull/407). |
| 759 |
- docker_network - no longer uses the Docker SDK for Python. It requires ``requests`` |
| 760 |
to be installed, and depending on the features used has some more requirements. |
| 761 |
If the Docker SDK for Python is installed, these requirements are likely |
| 762 |
met (https://github.com/ansible-collections/community.docker/pull/408). |
| 763 |
- docker_network_info - no longer uses the Docker SDK for Python. It requires |
| 764 |
``requests`` to be installed, and depending on the features used has some |
| 765 |
more requirements. If the Docker SDK for Python is installed, these requirements |
| 766 |
are likely met (https://github.com/ansible-collections/community.docker/pull/409). |
| 767 |
- docker_prune - no longer uses the Docker SDK for Python. It requires ``requests`` |
| 768 |
to be installed, and depending on the features used has some more requirements. |
| 769 |
If the Docker SDK for Python is installed, these requirements are likely |
| 770 |
met (https://github.com/ansible-collections/community.docker/pull/410). |
| 771 |
- docker_volume - no longer uses the Docker SDK for Python. It requires ``requests`` |
| 772 |
to be installed, and depending on the features used has some more requirements. |
| 773 |
If the Docker SDK for Python is installed, these requirements are likely |
| 774 |
met (https://github.com/ansible-collections/community.docker/pull/411). |
| 775 |
- docker_volume_info - no longer uses the Docker SDK for Python. It requires |
| 776 |
``requests`` to be installed, and depending on the features used has some |
| 777 |
more requirements. If the Docker SDK for Python is installed, these requirements |
| 778 |
are likely met (https://github.com/ansible-collections/community.docker/pull/412). |
| 779 |
minor_changes: |
| 780 |
- Remove vendored copy of ``distutils.version`` in favor of vendored copy |
| 781 |
included with ansible-core 2.12+. For ansible-core 2.11, uses ``distutils.version`` |
| 782 |
for Python < 3.12. There is no support for ansible-core 2.11 with Python |
| 783 |
3.12+ (https://github.com/ansible-collections/community.docker/pull/271). |
| 784 |
- socker_handler and socket_helper module utils - improve Python forward compatibility, |
| 785 |
create helper functions for file blocking/unblocking (https://github.com/ansible-collections/community.docker/pull/415). |
| 786 |
release_summary: First alpha prerelease of community.docker 3.0.0. This version |
| 787 |
has several breaking changes and features rewrites of several modules to directly |
| 788 |
use the API using ``requests``, instead of using the Docker SDK for Python. |
| 789 |
removed_features: |
| 790 |
- Execution Environments built with community.docker no longer include docker-compose |
| 791 |
< 2.0.0. If you need to use it with the ``docker_compose`` module, please |
| 792 |
install that requirement manually (https://github.com/ansible-collections/community.docker/pull/400). |
| 793 |
- Support for Ansible 2.9 and ansible-base 2.10 has been removed. If you need |
| 794 |
support for Ansible 2.9 or ansible-base 2.10, please use community.docker |
| 795 |
2.x.y (https://github.com/ansible-collections/community.docker/pull/400). |
| 796 |
- Support for Docker API versions 1.20 to 1.24 has been removed. If you need |
| 797 |
support for these API versions, please use community.docker 2.x.y (https://github.com/ansible-collections/community.docker/pull/400). |
| 798 |
- Support for Python 2.6 has been removed. If you need support for Python |
| 799 |
2.6, please use community.docker 2.x.y (https://github.com/ansible-collections/community.docker/pull/400). |
| 800 |
- Various modules - the default of ``tls_hostname`` (``localhost``) has been |
| 801 |
removed. If you want to continue using ``localhost``, you need to specify |
| 802 |
it explicitly (https://github.com/ansible-collections/community.docker/pull/363). |
| 803 |
- docker_container - the ``all`` value is no longer allowed in ``published_ports``. |
| 804 |
Use ``publish_all_ports=true`` instead (https://github.com/ansible-collections/community.docker/pull/399). |
| 805 |
- docker_container - the default of ``command_handling`` was changed from |
| 806 |
``compatibility`` to ``correct``. Older versions were warning for every |
| 807 |
invocation of the module when this would result in a change of behavior |
| 808 |
(https://github.com/ansible-collections/community.docker/pull/399). |
| 809 |
- docker_stack - the return values ``out`` and ``err`` have been removed. |
| 810 |
Use ``stdout`` and ``stderr`` instead (https://github.com/ansible-collections/community.docker/pull/363). |
| 811 |
fragments: |
| 812 |
- 271-distutils-vendor-removed.yml |
| 813 |
- 3.0.0-a1.yml |
| 814 |
- 363-deprecations.yml |
| 815 |
- 398-docker-api.yml |
| 816 |
- 399-deprecations.yml |
| 817 |
- 400-deprecations.yml |
| 818 |
- 401-docker_container_exec-docker-api.yml |
| 819 |
- 402-docker-api.yml |
| 820 |
- 403-docker-api.yml |
| 821 |
- 404-docker-api.yml |
| 822 |
- 405-docker-api.yml |
| 823 |
- 406-docker-api.yml |
| 824 |
- 407-docker-api.yml |
| 825 |
- 408-docker-api.yml |
| 826 |
- 409-docker-api.yml |
| 827 |
- 410-docker-api.yml |
| 828 |
- 411-docker-api.yml |
| 829 |
- 412-docker-api.yml |
| 830 |
- 413-docker-api.yml |
| 831 |
- 414-docker-api.yml |
| 832 |
- 415-socket-improvements.yml |
| 833 |
release_date: '2022-07-07' |
| 834 |
3.0.0-a2: |
| 835 |
changes: |
| 836 |
breaking_changes: |
| 837 |
- docker_container - ``exposed_ports`` is no longer ignored in ``comparisons``. |
| 838 |
Before, its value was assumed to be identical with the value of ``published_ports`` |
| 839 |
(https://github.com/ansible-collections/community.docker/pull/422). |
| 840 |
- docker_container - ``log_options`` can no longer be specified when ``log_driver`` |
| 841 |
is not specified (https://github.com/ansible-collections/community.docker/pull/422). |
| 842 |
- docker_container - ``publish_all_ports`` is no longer ignored in ``comparisons`` |
| 843 |
(https://github.com/ansible-collections/community.docker/pull/422). |
| 844 |
- docker_container - ``restart_retries`` can no longer be specified when ``restart_policy`` |
| 845 |
is not specified (https://github.com/ansible-collections/community.docker/pull/422). |
| 846 |
- docker_container - ``stop_timeout`` is no longer ignored for idempotency |
| 847 |
if told to be not ignored in ``comparisons``. So far it defaulted to ``ignore`` |
| 848 |
there, and setting it to ``strict`` had no effect (https://github.com/ansible-collections/community.docker/pull/422). |
| 849 |
major_changes: |
| 850 |
- docker_container - no longer uses the Docker SDK for Python. It requires |
| 851 |
``requests`` to be installed, and depending on the features used has some |
| 852 |
more requirements. If the Docker SDK for Python is installed, these requirements |
| 853 |
are likely met (https://github.com/ansible-collections/community.docker/pull/422). |
| 854 |
- docker_container - the module was completely rewritten from scratch (https://github.com/ansible-collections/community.docker/pull/422). |
| 855 |
- docker_plugin - no longer uses the Docker SDK for Python. It requires ``requests`` |
| 856 |
to be installed, and depending on the features used has some more requirements. |
| 857 |
If the Docker SDK for Python is installed, these requirements are likely |
| 858 |
met (https://github.com/ansible-collections/community.docker/pull/429). |
| 859 |
minor_changes: |
| 860 |
- docker_container - add a new parameter ``image_comparison`` to control the |
| 861 |
behavior for which image will be used for idempotency checks (https://github.com/ansible-collections/community.docker/issues/421, |
| 862 |
https://github.com/ansible-collections/community.docker/pull/428). |
| 863 |
- docker_container - add support for ``cgroupns_mode`` (https://github.com/ansible-collections/community.docker/issues/338, |
| 864 |
https://github.com/ansible-collections/community.docker/pull/427). |
| 865 |
- docker_container - allow to specify ``platform`` (https://github.com/ansible-collections/community.docker/issues/123, |
| 866 |
https://github.com/ansible-collections/community.docker/pull/426). |
| 867 |
release_summary: 'Second alpha prerelease of community.docker 3.0.0. This version |
| 868 |
again has several breaking changes |
| 869 |
|
| 870 |
and features rewrites of several modules to directly use the API using ``requests``, |
| 871 |
instead of using |
| 872 |
|
| 873 |
the Docker SDK for Python. |
| 874 |
|
| 875 |
|
| 876 |
The largest change to the previous 3.0.0-a1 prerelease is that ``docker_container`` |
| 877 |
module has been |
| 878 |
|
| 879 |
rewritten. It now also no longer needs the Docker SDK for Python, which allowed |
| 880 |
to implement some new |
| 881 |
|
| 882 |
features that were not available before (``platform`` and ``cgroupns_mode`` |
| 883 |
parameters). |
| 884 |
|
| 885 |
' |
| 886 |
fragments: |
| 887 |
- 3.0.0-a2.yml |
| 888 |
- 426-docker_container-platform.yml |
| 889 |
- 427-docker_container-cgroupns_mode.yml |
| 890 |
- 428-docker_container-image-ignore.yml |
| 891 |
- 429-docker_plugin.yml |
| 892 |
- docker_container.yml |
| 893 |
release_date: '2022-07-15' |
| 894 |
3.0.0-a3: |
| 895 |
changes: |
| 896 |
minor_changes: |
| 897 |
- All software licenses are now in the ``LICENSES/`` directory of the collection |
| 898 |
root. Moreover, ``SPDX-License-Identifier:`` is used to declare the applicable |
| 899 |
license for every file that is not automatically generated (https://github.com/ansible-collections/community.docker/pull/430). |
| 900 |
release_summary: No content changes except some license declaration adjustments. |
| 901 |
This is mainly a trial run to see whether this is causing unexpected problems. |
| 902 |
fragments: |
| 903 |
- 3.0.0-a3.yml |
| 904 |
- 430-licenses.yml |
| 905 |
release_date: '2022-07-23' |
| 906 |
3.0.0-rc1: |
| 907 |
changes: |
| 908 |
bugfixes: |
| 909 |
- modules and plugins communicating directly with the Docker daemon - prevent |
| 910 |
crash when TLS is used (https://github.com/ansible-collections/community.docker/pull/432). |
| 911 |
release_summary: First release candidate for community.docker 3.0.0. As long |
| 912 |
as more bugs are found new release candidates will be released. |
| 913 |
fragments: |
| 914 |
- 3.0.0-rc1.yml |
| 915 |
- 432-tls.yml |
| 916 |
release_date: '2022-07-26' |
| 917 |
3.0.0-rc2: |
| 918 |
changes: |
| 919 |
breaking_changes: |
| 920 |
- modules and plugins communicating directly with the Docker daemon - when |
| 921 |
connecting by SSH and not using ``use_ssh_client=true``, reject unknown |
| 922 |
host keys instead of accepting them. This is only a breaking change relative |
| 923 |
to older community.docker 3.0.0 pre-releases or with respect to Docker SDK |
| 924 |
for Python < 6.0.0. Docker SDK for Python 6.0.0 will also include this change |
| 925 |
(https://github.com/ansible-collections/community.docker/pull/434). |
| 926 |
bugfixes: |
| 927 |
- docker_image - when composing the build context, trim trailing whitespace |
| 928 |
from ``.dockerignore`` entries. This is only a change relative to older |
| 929 |
community.docker 3.0.0 pre-releases or with respect to Docker SDK for Python |
| 930 |
< 6.0.0. Docker SDK for Python 6.0.0 will also include this change (https://github.com/ansible-collections/community.docker/pull/434). |
| 931 |
- modules and plugins communicating directly with the Docker daemon - do not |
| 932 |
create a subshell for SSH connections when using ``use_ssh_client=true``. |
| 933 |
This is only a change relative to older community.docker 3.0.0 pre-releases |
| 934 |
or with respect to Docker SDK for Python < 6.0.0. Docker SDK for Python |
| 935 |
6.0.0 will also include this change (https://github.com/ansible-collections/community.docker/pull/434). |
| 936 |
- modules and plugins communicating directly with the Docker daemon - fix |
| 937 |
``ProxyCommand`` handling for SSH connections when not using ``use_ssh_client=true``. |
| 938 |
This is only a change relative to older community.docker 3.0.0 pre-releases |
| 939 |
or with respect to Docker SDK for Python < 6.0.0. Docker SDK for Python |
| 940 |
6.0.0 will also include this change (https://github.com/ansible-collections/community.docker/pull/434). |
| 941 |
- modules and plugins communicating directly with the Docker daemon - fix |
| 942 |
parsing of IPv6 addresses with a port in ``docker_host``. This is only a |
| 943 |
change relative to older community.docker 3.0.0 pre-releases or with respect |
| 944 |
to Docker SDK for Python < 6.0.0. Docker SDK for Python 6.0.0 will also |
| 945 |
include this change (https://github.com/ansible-collections/community.docker/pull/434). |
| 946 |
minor_changes: |
| 947 |
- modules and plugins communicating directly with the Docker daemon - improve |
| 948 |
default TLS version selection for Python 3.6 and newer. This is only a change |
| 949 |
relative to older community.docker 3.0.0 pre-releases or with respect to |
| 950 |
Docker SDK for Python < 6.0.0. Docker SDK for Python 6.0.0 will also include |
| 951 |
this change (https://github.com/ansible-collections/community.docker/pull/434). |
| 952 |
release_summary: Second release candidate for community.docker 3.0.0. As long |
| 953 |
as more bugs are found new release candidates will be released. |
| 954 |
security_fixes: |
| 955 |
- modules and plugins communicating directly with the Docker daemon - when |
| 956 |
connecting by SSH and not using ``use_ssh_client=true``, reject unknown |
| 957 |
host keys instead of accepting them. This is only a change relative to older |
| 958 |
community.docker 3.0.0 pre-releases or with respect to Docker SDK for Python |
| 959 |
< 6.0.0. Docker SDK for Python 6.0.0 will also include this change (https://github.com/ansible-collections/community.docker/pull/434). |
| 960 |
fragments: |
| 961 |
- 3.0.0-rc2.yml |
| 962 |
- docker-py-changes-1.yml |
| 963 |
release_date: '2022-07-31' |
| 964 |
3.0.0: |
| 965 |
changes: |
| 966 |
bugfixes: |
| 967 |
- docker_plugin - fix crash when handling plugin options (https://github.com/ansible-collections/community.docker/issues/446, |
| 968 |
https://github.com/ansible-collections/community.docker/pull/447). |
| 969 |
- docker_stack - fix broken string formatting when reporting error in case |
| 970 |
``compose`` was containing invalid values (https://github.com/ansible-collections/community.docker/pull/448). |
| 971 |
minor_changes: |
| 972 |
- modules and plugins communicating directly with the Docker daemon - simplify |
| 973 |
use of helper function that was removed in Docker SDK for Python to find |
| 974 |
executables (https://github.com/ansible-collections/community.docker/pull/438). |
| 975 |
release_summary: The 3.0.0 release features a rewrite of the ``docker_container`` |
| 976 |
module, and many modules and plugins no longer depend on the Docker SDK for |
| 977 |
Python. |
| 978 |
fragments: |
| 979 |
- 3.0.0.yml |
| 980 |
- 438-docker-py.yml |
| 981 |
- 447-docker_plugin-bug.yml |
| 982 |
- 448-docker_stack-error.yml |
| 983 |
release_date: '2022-08-12' |
| 984 |
3.0.1: |
| 985 |
changes: |
| 986 |
bugfixes: |
| 987 |
- docker_container - fix handling of ``env_file`` (https://github.com/ansible-collections/community.docker/issues/451, |
| 988 |
https://github.com/ansible-collections/community.docker/pull/452). |
| 989 |
release_summary: Bugfix release. |
| 990 |
fragments: |
| 991 |
- 3.0.1.yml |
| 992 |
- 452-docker_container-env_file.yml |
| 993 |
release_date: '2022-08-15' |
| 994 |
3.0.2: |
| 995 |
changes: |
| 996 |
bugfixes: |
| 997 |
- docker_image - fix build argument handling (https://github.com/ansible-collections/community.docker/issues/455, |
| 998 |
https://github.com/ansible-collections/community.docker/pull/456). |
| 999 |
release_summary: Bugfix release. |
| 1000 |
fragments: |
| 1001 |
- 3.0.2.yml |
| 1002 |
- 456-docker_image-build-args.yml |
| 1003 |
release_date: '2022-08-16' |
| 1004 |
3.1.0: |
| 1005 |
changes: |
| 1006 |
minor_changes: |
| 1007 |
- The collection repository conforms to the `REUSE specification <https://reuse.software/spec/>`__ |
| 1008 |
except for the changelog fragments (https://github.com/ansible-collections/community.docker/pull/462). |
| 1009 |
- docker_swarm - allows usage of the ``data_path_port`` parameter when initializing |
| 1010 |
a swarm (https://github.com/ansible-collections/community.docker/issues/296). |
| 1011 |
release_summary: Feature release. |
| 1012 |
fragments: |
| 1013 |
- 3.1.0.yml |
| 1014 |
- 466-add-data-path-port.yml |
| 1015 |
- licenses.yml |
| 1016 |
release_date: '2022-09-08' |
| 1017 |
3.2.0: |
| 1018 |
changes: |
| 1019 |
deprecated_features: |
| 1020 |
- 'docker_container - the ``ignore_image`` option is deprecated and will be |
| 1021 |
removed in community.docker 4.0.0. Use ``image: ignore`` in ``comparisons`` |
| 1022 |
instead (https://github.com/ansible-collections/community.docker/pull/487).' |
| 1023 |
- 'docker_container - the ``purge_networks`` option is deprecated and will |
| 1024 |
be removed in community.docker 4.0.0. Use ``networks: strict`` in ``comparisons`` |
| 1025 |
instead, and make sure to provide ``networks``, with value ``[]`` if all |
| 1026 |
networks should be removed (https://github.com/ansible-collections/community.docker/pull/487).' |
| 1027 |
minor_changes: |
| 1028 |
- docker_container - added ``image_name_mismatch`` option which allows to |
| 1029 |
control the behavior if the container uses the image specified, but the |
| 1030 |
container's configuration uses a different name for the image than the one |
| 1031 |
provided to the module (https://github.com/ansible-collections/community.docker/issues/485, |
| 1032 |
https://github.com/ansible-collections/community.docker/pull/488). |
| 1033 |
release_summary: Feature and deprecation release. |
| 1034 |
fragments: |
| 1035 |
- 3.2.0.yml |
| 1036 |
- 487-docker_container-deprecate.yml |
| 1037 |
- 488-docker_container-image-name.yml |
| 1038 |
release_date: '2022-11-01' |
| 1039 |
3.2.1: |
| 1040 |
changes: |
| 1041 |
release_summary: Maintenance release with improved documentation. |
| 1042 |
fragments: |
| 1043 |
- 3.2.1.yml |
| 1044 |
release_date: '2022-11-06' |
| 1045 |
3.2.2: |
| 1046 |
changes: |
| 1047 |
bugfixes: |
| 1048 |
- docker_container - the ``kill_signal`` option erroneously did not accept |
| 1049 |
strings anymore since 3.0.0 (https://github.com/ansible-collections/community.docker/issues/505, |
| 1050 |
https://github.com/ansible-collections/community.docker/pull/506). |
| 1051 |
release_summary: Bugfix release. |
| 1052 |
fragments: |
| 1053 |
- 3.2.2.yml |
| 1054 |
- 506-docker_container-kill_signal.yml |
| 1055 |
release_date: '2022-11-28' |
| 1056 |
3.3.0: |
| 1057 |
changes: |
| 1058 |
bugfixes: |
| 1059 |
- docker_container_exec - fix ``chdir`` option which was ignored since community.docker |
| 1060 |
3.0.0 (https://github.com/ansible-collections/community.docker/issues/517, |
| 1061 |
https://github.com/ansible-collections/community.docker/pull/518). |
| 1062 |
- vendored latest Docker SDK for Python bugfix (https://github.com/ansible-collections/community.docker/pull/513, |
| 1063 |
https://github.com/docker/docker-py/issues/3045). |
| 1064 |
minor_changes: |
| 1065 |
- current_container_facts - make work with current Docker version, also support |
| 1066 |
Podman (https://github.com/ansible-collections/community.docker/pull/510). |
| 1067 |
- docker_image - when using ``archive_path``, detect whether changes are necessary |
| 1068 |
based on the image ID (hash). If the existing tar archive matches the source, |
| 1069 |
do nothing. Previously, each task execution re-created the archive (https://github.com/ansible-collections/community.docker/pull/500). |
| 1070 |
release_summary: Feature and bugfix release. |
| 1071 |
fragments: |
| 1072 |
- 3.3.0.yml |
| 1073 |
- 500-idempotent-image-archival.yaml |
| 1074 |
- 510-current_container_facts.yml |
| 1075 |
- 513-api-npipe.yml |
| 1076 |
- 518-docker_container_exec-workdir.yml |
| 1077 |
release_date: '2022-12-03' |
| 1078 |
3.3.1: |
| 1079 |
changes: |
| 1080 |
bugfixes: |
| 1081 |
- current_container_facts - make container detection work better in more cases |
| 1082 |
(https://github.com/ansible-collections/community.docker/pull/522). |
| 1083 |
release_summary: Bugfix release. |
| 1084 |
fragments: |
| 1085 |
- 3.3.1.yml |
| 1086 |
- 522-current-image.yml |
| 1087 |
release_date: '2022-12-06' |
| 1088 |
3.3.2: |
| 1089 |
changes: |
| 1090 |
bugfixes: |
| 1091 |
- docker_container - when ``detach=false``, wait indefinitely and not at most |
| 1092 |
one minute. This was the behavior with Docker SDK for Python, and was accidentally |
| 1093 |
changed in 3.0.0 (https://github.com/ansible-collections/community.docker/issues/526, |
| 1094 |
https://github.com/ansible-collections/community.docker/pull/527). |
| 1095 |
release_summary: Bugfix release. |
| 1096 |
fragments: |
| 1097 |
- 3.3.2.yml |
| 1098 |
- 527-container-wait.yml |
| 1099 |
release_date: '2022-12-09' |
| 1100 |
3.4.0: |
| 1101 |
changes: |
| 1102 |
bugfixes: |
| 1103 |
- docker_api connection plugin - fix error handling when 409 Conflict is returned |
| 1104 |
by the Docker daemon in case of a stopped container (https://github.com/ansible-collections/community.docker/pull/546). |
| 1105 |
- docker_container_exec - fix error handling when 409 Conflict is returned |
| 1106 |
by the Docker daemon in case of a stopped container (https://github.com/ansible-collections/community.docker/pull/546). |
| 1107 |
- docker_plugin - do not crash if plugin is installed in check mode (https://github.com/ansible-collections/community.docker/issues/552, |
| 1108 |
https://github.com/ansible-collections/community.docker/pull/553). |
| 1109 |
- most modules - fix handling of ``DOCKER_TIMEOUT`` environment variable, |
| 1110 |
and improve handling of other fallback environment variables (https://github.com/ansible-collections/community.docker/issues/551, |
| 1111 |
https://github.com/ansible-collections/community.docker/pull/554). |
| 1112 |
minor_changes: |
| 1113 |
- docker_api connection plugin - when copying files to/from a container, stream |
| 1114 |
the file contents instead of first reading them to memory (https://github.com/ansible-collections/community.docker/pull/545). |
| 1115 |
- docker_host_info - allow to list all containers with new option ``containers_all`` |
| 1116 |
(https://github.com/ansible-collections/community.docker/issues/535, https://github.com/ansible-collections/community.docker/pull/538). |
| 1117 |
release_summary: Regular bugfix and feature release. |
| 1118 |
fragments: |
| 1119 |
- 3.4.0.yml |
| 1120 |
- 538-docker_host_info-all-containers.yml |
| 1121 |
- 545-docker_api.yml |
| 1122 |
- 546-conflict-error.yml |
| 1123 |
- 553-docker_plugin-check-mode.yml |
| 1124 |
- 554-env-vars.yml |
| 1125 |
modules: |
| 1126 |
- description: Copy a file into a Docker container |
| 1127 |
name: docker_container_copy_into |
| 1128 |
namespace: '' |
| 1129 |
release_date: '2023-01-14' |
| 1130 |
3.4.1: |
| 1131 |
changes: |
| 1132 |
bugfixes: |
| 1133 |
- docker_api connection plugin, docker_container_exec, docker_container_copy_into |
| 1134 |
- properly close socket to Daemon after executing commands in containers |
| 1135 |
(https://github.com/ansible-collections/community.docker/pull/582). |
| 1136 |
- docker_container - fix ``tmfs_size`` and ``tmpfs_mode`` not being set (https://github.com/ansible-collections/community.docker/pull/580). |
| 1137 |
- various plugins and modules - remove unnecessary imports (https://github.com/ansible-collections/community.docker/pull/574). |
| 1138 |
release_summary: Regular bugfix release. |
| 1139 |
fragments: |
| 1140 |
- 3.4.1.yml |
| 1141 |
- 582-stream-close.yml |
| 1142 |
- fix-tmpfs_size-and-tmpfs_mode.yml |
| 1143 |
- remove-unneeded-imports.yml |
| 1144 |
release_date: '2023-02-20' |
| 1145 |
3.4.2: |
| 1146 |
changes: |
| 1147 |
bugfixes: |
| 1148 |
- docker_prune - return correct value for ``changed``. So far the module always |
| 1149 |
claimed that nothing changed (https://github.com/ansible-collections/community.docker/pull/593). |
| 1150 |
release_summary: Bugfix release. |
| 1151 |
fragments: |
| 1152 |
- 3.4.2.yml |
| 1153 |
- 593-docker_prune-changed.yml |
| 1154 |
release_date: '2023-02-25' |
| 1155 |
3.4.3: |
| 1156 |
changes: |
| 1157 |
release_summary: Maintenance release with improved documentation. |
| 1158 |
fragments: |
| 1159 |
- 3.4.3.yml |
| 1160 |
release_date: '2023-03-24' |
| 1161 |
3.4.4: |
| 1162 |
changes: |
| 1163 |
known_issues: |
| 1164 |
- The modules and plugins using the vendored code from Docker SDK for Python |
| 1165 |
currently do not work with requests 2.29.0 and/or urllib3 2.0.0. The same |
| 1166 |
is currently true for the latest version of Docker SDK for Python itself |
| 1167 |
(https://github.com/ansible-collections/community.docker/issues/611, https://github.com/ansible-collections/community.docker/pull/612). |
| 1168 |
minor_changes: |
| 1169 |
- Restrict requests to versions before 2.29.0, and urllib3 to versions before |
| 1170 |
2.0.0. This is necessary until the vendored code from Docker SDK for Python |
| 1171 |
has been fully adjusted to work with a feature of urllib3 that is used since |
| 1172 |
requests 2.29.0 (https://github.com/ansible-collections/community.docker/issues/611, |
| 1173 |
https://github.com/ansible-collections/community.docker/pull/612). |
| 1174 |
release_summary: Maintenance release with updated EE requirements and updated |
| 1175 |
documentation. |
| 1176 |
fragments: |
| 1177 |
- 3.4.4.yml |
| 1178 |
- 612-requests-2.29.0.yml |
| 1179 |
release_date: '2023-05-01' |
| 1180 |
3.4.5: |
| 1181 |
changes: |
| 1182 |
bugfixes: |
| 1183 |
- Make vendored Docker SDK for Python code compatible with requests 2.29.0 |
| 1184 |
and urllib3 2.0 (https://github.com/ansible-collections/community.docker/pull/613). |
| 1185 |
release_summary: Maintenance release which adds compatibility with requests |
| 1186 |
2.29.0 and 2.30.0 and urllib3 2.0. |
| 1187 |
fragments: |
| 1188 |
- 3.4.5.yml |
| 1189 |
- 613-requests.yml |
| 1190 |
release_date: '2023-05-05' |
| 1191 |
3.4.6: |
| 1192 |
changes: |
| 1193 |
bugfixes: |
| 1194 |
- socket_handler module utils - make sure this fully works when Docker SDK |
| 1195 |
for Python is not available (https://github.com/ansible-collections/community.docker/pull/620). |
| 1196 |
- vendored Docker SDK for Python code - fix for errors on pipe close in Windows |
| 1197 |
(https://github.com/ansible-collections/community.docker/pull/619). |
| 1198 |
- vendored Docker SDK for Python code - respect timeouts on Windows named |
| 1199 |
pipes (https://github.com/ansible-collections/community.docker/pull/619). |
| 1200 |
- vendored Docker SDK for Python code - use ``poll()`` instead of ``select()`` |
| 1201 |
except on Windows (https://github.com/ansible-collections/community.docker/pull/619). |
| 1202 |
known_issues: |
| 1203 |
- docker_api connection plugin - does **not work with TCP TLS sockets**! This |
| 1204 |
is caused by the inability to send an ``close_notify`` TLS alert without |
| 1205 |
closing the connection with Python's ``SSLSocket`` (https://github.com/ansible-collections/community.docker/issues/605, |
| 1206 |
https://github.com/ansible-collections/community.docker/pull/621). |
| 1207 |
- docker_container_exec - does **not work with TCP TLS sockets** when the |
| 1208 |
``stdin`` option is used! This is caused by the inability to send an ``close_notify`` |
| 1209 |
TLS alert without closing the connection with Python's ``SSLSocket`` (https://github.com/ansible-collections/community.docker/issues/605, |
| 1210 |
https://github.com/ansible-collections/community.docker/pull/621). |
| 1211 |
release_summary: Bugfix release with documentation warnings about using certain |
| 1212 |
functionality when connecting to the Docker daemon with TCP TLS. |
| 1213 |
fragments: |
| 1214 |
- 3.4.6.yml |
| 1215 |
- 620-bugfixes.yml |
| 1216 |
- docker-py.yml |
| 1217 |
- tls-tcp-warn.yml |
| 1218 |
release_date: '2023-05-20' |
| 1219 |
3.4.7: |
| 1220 |
changes: |
| 1221 |
bugfixes: |
| 1222 |
- docker_swarm_info - if ``service=true`` is used, do not crash when a service |
| 1223 |
without an endpoint spec is encountered (https://github.com/ansible-collections/community.docker/issues/636, |
| 1224 |
https://github.com/ansible-collections/community.docker/pull/637). |
| 1225 |
release_summary: Bugfix release. |
| 1226 |
fragments: |
| 1227 |
- 3.4.7.yml |
| 1228 |
- 637-swarm_info-endpoint_spec.yml |
| 1229 |
release_date: '2023-06-15' |
| 1230 |
3.4.8: |
| 1231 |
changes: |
| 1232 |
known_issues: |
| 1233 |
- Ansible markup will show up in raw form on ansible-doc text output for ansible-core |
| 1234 |
before 2.15. If you have trouble deciphering the documentation markup, please |
| 1235 |
upgrade to ansible-core 2.15 (or newer), or read the HTML documentation |
| 1236 |
on https://docs.ansible.com/ansible/devel/collections/community/docker/. |
| 1237 |
release_summary: 'Maintenance release with updated documentation. |
| 1238 |
|
| 1239 |
|
| 1240 |
From this version on, community.docker is using the new `Ansible semantic |
| 1241 |
markup |
| 1242 |
|
| 1243 |
<https://docs.ansible.com/ansible/devel/dev_guide/developing_modules_documenting.html#semantic-markup-within-module-documentation>`__ |
| 1244 |
|
| 1245 |
in its documentation. If you look at documentation with the ansible-doc CLI |
| 1246 |
tool |
| 1247 |
|
| 1248 |
from ansible-core before 2.15, please note that it does not render the markup |
| 1249 |
|
| 1250 |
correctly. You should be still able to read it in most cases, but you need |
| 1251 |
|
| 1252 |
ansible-core 2.15 or later to see it as it is intended. Alternatively you |
| 1253 |
can |
| 1254 |
|
| 1255 |
look at `the devel docsite <https://docs.ansible.com/ansible/devel/collections/community/docker/>`__ |
| 1256 |
|
| 1257 |
for the rendered HTML version of the documentation of the latest release. |
| 1258 |
|
| 1259 |
' |
| 1260 |
fragments: |
| 1261 |
- 3.4.8.yml |
| 1262 |
release_date: '2023-06-22' |
| 1263 |
3.4.9: |
| 1264 |
changes: |
| 1265 |
bugfixes: |
| 1266 |
- vendored Docker SDK for Python code - cherry-pick changes from the Docker |
| 1267 |
SDK for Python code to align code. These changes should not affect the parts |
| 1268 |
used by the collection's code (https://github.com/ansible-collections/community.docker/pull/694). |
| 1269 |
release_summary: Maintenance release with updated documentation and vendored |
| 1270 |
Docker SDK for Python code. |
| 1271 |
fragments: |
| 1272 |
- 3.4.9.yml |
| 1273 |
- 694-docker-py.yml |
| 1274 |
release_date: '2023-10-08' |
| 1275 |
3.4.10: |
| 1276 |
changes: |
| 1277 |
bugfixes: |
| 1278 |
- docker_swarm - make init and join operations work again with Docker SDK |
| 1279 |
for Python before 4.0.0 (https://github.com/ansible-collections/community.docker/issues/695, |
| 1280 |
https://github.com/ansible-collections/community.docker/pull/696). |
| 1281 |
release_summary: Bugfix release. |
| 1282 |
fragments: |
| 1283 |
- 3.4.10.yml |
| 1284 |
- 696-docker_swarm-data_addr_path.yml |
| 1285 |
release_date: '2023-10-29' |
| 1286 |
3.4.11: |
| 1287 |
changes: |
| 1288 |
bugfixes: |
| 1289 |
- docker_volume - fix crash caused by accessing an empty dictionary. The ``has_different_config()`` |
| 1290 |
was raising an ``AttributeError`` because the ``self.existing_volume["Labels"]`` |
| 1291 |
dictionary was ``None`` (https://github.com/ansible-collections/community.docker/pull/702). |
| 1292 |
release_summary: Bugfix release. |
| 1293 |
fragments: |
| 1294 |
- 3.4.11.yml |
| 1295 |
- 702-docker-volume-label-none.yaml |
| 1296 |
release_date: '2023-11-12' |
| 1297 |
3.5.0: |
| 1298 |
changes: |
| 1299 |
bugfixes: |
| 1300 |
- modules and plugins using the Docker SDK for Python - remove ``ssl_version`` |
| 1301 |
from the parameters passed to Docker SDK for Python 7.0.0+. Explicitly fail |
| 1302 |
with a nicer error message if it was explicitly set in this case (https://github.com/ansible-collections/community.docker/pull/715). |
| 1303 |
- modules and plugins using the Docker SDK for Python - remove ``tls_hostname`` |
| 1304 |
from the parameters passed to Docker SDK for Python 7.0.0+. Explicitly fail |
| 1305 |
with a nicer error message if it was explicitly set in this case (https://github.com/ansible-collections/community.docker/pull/721). |
| 1306 |
- vendored Docker SDK for Python - avoid passing on ``ssl_version`` and ``tls_hostname`` |
| 1307 |
if they were not provided by the user. Remove dead code. (https://github.com/ansible-collections/community.docker/pull/722). |
| 1308 |
deprecated_features: |
| 1309 |
- docker_container - the default ``ignore`` for the ``image_name_mismatch`` |
| 1310 |
parameter has been deprecated and will switch to ``recreate`` in community.docker |
| 1311 |
4.0.0. A deprecation warning will be printed in situations where the default |
| 1312 |
value is used and where a behavior would change once the default changes |
| 1313 |
(https://github.com/ansible-collections/community.docker/pull/703). |
| 1314 |
minor_changes: |
| 1315 |
- docker_container - implement better ``platform`` string comparisons to improve |
| 1316 |
idempotency (https://github.com/ansible-collections/community.docker/issues/654, |
| 1317 |
https://github.com/ansible-collections/community.docker/pull/705). |
| 1318 |
- docker_container - internal refactorings which allow comparisons to use |
| 1319 |
more information like details of the current image or the Docker host config |
| 1320 |
(https://github.com/ansible-collections/community.docker/pull/713). |
| 1321 |
release_summary: Bugfix and feature release. |
| 1322 |
fragments: |
| 1323 |
- 3.5.0.yml |
| 1324 |
- 703-docker_container-image_name_mismatch.yml |
| 1325 |
- 705-docker_container-platform.yml |
| 1326 |
- 713-docker_container-refactoring.yml |
| 1327 |
- 715-docker-7.yml |
| 1328 |
- 721-docker-7.yml |
| 1329 |
- 722-tls.yml |
| 1330 |
release_date: '2023-12-10' |
| 1331 |
3.6.0-b1: |
| 1332 |
changes: |
| 1333 |
bugfixes: |
| 1334 |
- Use ``unix:///var/run/docker.sock`` instead of the legacy ``unix://var/run/docker.sock`` |
| 1335 |
as default for ``docker_host`` (https://github.com/ansible-collections/community.docker/pull/736). |
| 1336 |
minor_changes: |
| 1337 |
- docker_image - allow to specify labels and ``/dev/shm`` size when building |
| 1338 |
images (https://github.com/ansible-collections/community.docker/issues/726, |
| 1339 |
https://github.com/ansible-collections/community.docker/pull/727). |
| 1340 |
- docker_image - allow to specify memory size and swap memory size in other |
| 1341 |
units than bytes (https://github.com/ansible-collections/community.docker/pull/727). |
| 1342 |
release_summary: 'Prerelease of the upcoming 3.6.0 bugfix and feature release. |
| 1343 |
|
| 1344 |
|
| 1345 |
The collection now includes a bunch of new ``docker_image_*`` modules that |
| 1346 |
move features out of the |
| 1347 |
|
| 1348 |
rather complex ``docker_image`` module. These new modules are easier to use |
| 1349 |
and can better declare whether |
| 1350 |
|
| 1351 |
they support check mode, diff mode, or none of them. |
| 1352 |
|
| 1353 |
|
| 1354 |
This version also features modules that support the Docker CLI plugins ``buildx`` |
| 1355 |
and ``compose``. |
| 1356 |
|
| 1357 |
The ``docker_image_build`` module uses the ``docker buildx`` command under |
| 1358 |
the hood, and the ``docker_compose_v2`` |
| 1359 |
|
| 1360 |
module uses the ``docker compose`` command. Both these modules use the Docker |
| 1361 |
CLI instead of directly talking |
| 1362 |
|
| 1363 |
to the API. The modules support mostly the same interface as the API based |
| 1364 |
modules, so the main difference is that |
| 1365 |
|
| 1366 |
instead of some Python requirements, they depend on the Docker CLI tool ``docker``. |
| 1367 |
|
| 1368 |
' |
| 1369 |
fragments: |
| 1370 |
- 3.6.0-b1.yml |
| 1371 |
- 727-docker_image-build.yml |
| 1372 |
- host.yml |
| 1373 |
modules: |
| 1374 |
- description: Manage multi-container Docker applications with Docker Compose |
| 1375 |
CLI plugin |
| 1376 |
name: docker_compose_v2 |
| 1377 |
namespace: '' |
| 1378 |
- description: Build Docker images using Docker buildx |
| 1379 |
name: docker_image_build |
| 1380 |
namespace: '' |
| 1381 |
- description: Pull Docker images from registries |
| 1382 |
name: docker_image_pull |
| 1383 |
namespace: '' |
| 1384 |
- description: Push Docker images to registries |
| 1385 |
name: docker_image_push |
| 1386 |
namespace: '' |
| 1387 |
- description: Remove Docker images |
| 1388 |
name: docker_image_remove |
| 1389 |
namespace: '' |
| 1390 |
- description: Tag Docker images with new names and/or tags |
| 1391 |
name: docker_image_tag |
| 1392 |
namespace: '' |
| 1393 |
release_date: '2024-01-04' |
| 1394 |
3.6.0-b2: |
| 1395 |
changes: |
| 1396 |
major_changes: |
| 1397 |
- The ``community.docker`` collection now depends on the ``community.library_inventory_filtering_v1`` |
| 1398 |
collection. This utility collection provides host filtering functionality |
| 1399 |
for inventory plugins. If you use the Ansible community package, both collections |
| 1400 |
are included and you do not have to do anything special. If you install |
| 1401 |
the collection with ``ansible-galaxy collection install``, it will be installed |
| 1402 |
automatically. If you install the collection by copying the files of the |
| 1403 |
collection to a place where ansible-core can find it, for example by cloning |
| 1404 |
the git repository, you need to make sure that you also have to install |
| 1405 |
the dependency if you are using the inventory plugins (https://github.com/ansible-collections/community.docker/pull/698). |
| 1406 |
minor_changes: |
| 1407 |
- The ``ca_cert`` option available to almost all modules and plugins has been |
| 1408 |
renamed to ``ca_path``. The name ``ca_path`` is also used for similar options |
| 1409 |
in ansible-core and other collections. The old name has been added as an |
| 1410 |
alias and can still be used (https://github.com/ansible-collections/community.docker/pull/744). |
| 1411 |
- The ``docker_stack*`` modules now use the common CLI-based module code added |
| 1412 |
for the ``docker_image_build`` and ``docker_compose_v2`` modules. This means |
| 1413 |
that the modules now have various more configuration options with respect |
| 1414 |
to talking to the Docker Daemon, and now also are part of the ``community.docker.docker`` |
| 1415 |
and ``docker`` module default groups (https://github.com/ansible-collections/community.docker/pull/745). |
| 1416 |
- inventory plugins - add ``filter`` option which allows to include and exclude |
| 1417 |
hosts based on Jinja2 conditions (https://github.com/ansible-collections/community.docker/pull/698, |
| 1418 |
https://github.com/ansible-collections/community.docker/issues/610). |
| 1419 |
release_summary: 'Second prerelease of the upcoming 3.6.0 bugfix and feature |
| 1420 |
release. |
| 1421 |
|
| 1422 |
|
| 1423 |
The collection now includes a bunch of new ``docker_image_*`` modules that |
| 1424 |
move features out of the |
| 1425 |
|
| 1426 |
rather complex ``docker_image`` module. These new modules are easier to use |
| 1427 |
and can better declare whether |
| 1428 |
|
| 1429 |
they support check mode, diff mode, or none of them. |
| 1430 |
|
| 1431 |
|
| 1432 |
This version also features modules that support the Docker CLI plugins ``buildx`` |
| 1433 |
and ``compose``. |
| 1434 |
|
| 1435 |
The ``docker_image_build`` module uses the ``docker buildx`` command under |
| 1436 |
the hood, and the ``docker_compose_v2`` |
| 1437 |
|
| 1438 |
and ``docker_compose_v2_pull`` modules uses the ``docker compose`` command. |
| 1439 |
All these modules use the Docker CLI |
| 1440 |
|
| 1441 |
instead of directly talking to the API. The modules support mostly the same |
| 1442 |
interface as the API based modules, |
| 1443 |
|
| 1444 |
so the main difference is that instead of some Python requirements, they depend |
| 1445 |
on the Docker CLI tool ``docker``. |
| 1446 |
|
| 1447 |
|
| 1448 |
Other changes to the collection since the last prerelease: |
| 1449 |
|
| 1450 |
|
| 1451 |
* docker_compose_v2 allows to specify the pull policy |
| 1452 |
|
| 1453 |
' |
| 1454 |
fragments: |
| 1455 |
- 3.6.0-b2.yml |
| 1456 |
- 698-filter.yml |
| 1457 |
- 744-ca_path.yml |
| 1458 |
- 745-docker_stack.yml |
| 1459 |
modules: |
| 1460 |
- description: Pull a Docker compose project |
| 1461 |
name: docker_compose_v2_pull |
| 1462 |
namespace: '' |
| 1463 |
release_date: '2024-01-14' |
| 1464 |
3.6.0-rc1: |
| 1465 |
changes: |
| 1466 |
release_summary: 'First release candidate of the latest bugfix and feature release. |
| 1467 |
|
| 1468 |
No more features will be added before the final release, which will likely |
| 1469 |
happen on Sunday or Monday. |
| 1470 |
|
| 1471 |
|
| 1472 |
The collection now includes a bunch of new ``docker_image_*`` modules that |
| 1473 |
move features out of the |
| 1474 |
|
| 1475 |
rather complex ``docker_image`` module. These new modules are easier to use |
| 1476 |
and can better declare whether |
| 1477 |
|
| 1478 |
they support check mode, diff mode, or none of them. |
| 1479 |
|
| 1480 |
|
| 1481 |
This version also features modules that support the Docker CLI plugins ``buildx`` |
| 1482 |
and ``compose``. |
| 1483 |
|
| 1484 |
The ``docker_image_build`` module uses the ``docker buildx`` command under |
| 1485 |
the hood, and the ``docker_compose_v2`` |
| 1486 |
|
| 1487 |
and ``docker_compose_v2_pull`` modules uses the ``docker compose`` command. |
| 1488 |
All these modules use the Docker CLI |
| 1489 |
|
| 1490 |
instead of directly talking to the API. The modules support mostly the same |
| 1491 |
interface as the API based modules, |
| 1492 |
|
| 1493 |
so the main difference is that instead of some Python requirements, they depend |
| 1494 |
on the Docker CLI tool ``docker``. |
| 1495 |
|
| 1496 |
|
| 1497 |
Changes since the last beta: |
| 1498 |
|
| 1499 |
* The ``docker_compose_v2*`` modules also checks for ``compose.yaml`` and |
| 1500 |
``compose.yml``, not only for ``docker-compose.yaml`` and ``docker-compose.yml``. |
| 1501 |
|
| 1502 |
* You can now specify ``services`` in the ``docker_compose_v2`` module. |
| 1503 |
|
| 1504 |
* You can now specify ``build`` in the ``docker_compose_v2`` module (allows |
| 1505 |
to pass ``--build`` or ``--no-build`` depending on its value). |
| 1506 |
|
| 1507 |
' |
| 1508 |
fragments: |
| 1509 |
- 3.6.0-rc1.yml |
| 1510 |
release_date: '2024-01-18' |
| 1511 |
3.6.0: |
| 1512 |
changes: |
| 1513 |
bugfixes: |
| 1514 |
- docker_image - fix archiving idempotency with Docker API 1.44 or later (https://github.com/ansible-collections/community.docker/pull/765). |
| 1515 |
minor_changes: |
| 1516 |
- docker_container - add ``networks[].mac_address`` option for Docker API |
| 1517 |
1.44+. Note that Docker API 1.44 no longer uses the global ``mac_address`` |
| 1518 |
option, this new option is the only way to set the MAC address for a container |
| 1519 |
(https://github.com/ansible-collections/community.docker/pull/763). |
| 1520 |
release_summary: 'Bugfix and feature release. |
| 1521 |
|
| 1522 |
|
| 1523 |
The collection now includes a bunch of new ``docker_image_*`` modules that |
| 1524 |
move features out of the |
| 1525 |
|
| 1526 |
rather complex ``docker_image`` module. These new modules are easier to use |
| 1527 |
and can better declare whether |
| 1528 |
|
| 1529 |
they support check mode, diff mode, or none of them. |
| 1530 |
|
| 1531 |
|
| 1532 |
This version also features modules that support the Docker CLI plugins ``buildx`` |
| 1533 |
and ``compose``. |
| 1534 |
|
| 1535 |
The ``docker_image_build`` module uses the ``docker buildx`` command under |
| 1536 |
the hood, and the ``docker_compose_v2`` |
| 1537 |
|
| 1538 |
and ``docker_compose_v2_pull`` modules uses the ``docker compose`` command. |
| 1539 |
All these modules use the Docker CLI |
| 1540 |
|
| 1541 |
instead of directly talking to the API. The modules support mostly the same |
| 1542 |
interface as the API based modules, |
| 1543 |
|
| 1544 |
so the main difference is that instead of some Python requirements, they depend |
| 1545 |
on the Docker CLI tool ``docker``. |
| 1546 |
|
| 1547 |
' |
| 1548 |
fragments: |
| 1549 |
- 3.6.0.yml |
| 1550 |
- 763-docker_container-mac_address.yml |
| 1551 |
- 765-docker_image-archive.yml |
| 1552 |
release_date: '2024-01-21' |
| 1553 |
3.7.0: |
| 1554 |
changes: |
| 1555 |
bugfixes: |
| 1556 |
- docker_compose_v2 - properly parse dry-run build events from ``stderr`` |
| 1557 |
(https://github.com/ansible-collections/community.docker/issues/778, https://github.com/ansible-collections/community.docker/pull/779). |
| 1558 |
- docker_compose_v2_pull - the module was documented as part of the ``community.docker.docker`` |
| 1559 |
action group, but was not actually part of it. That has now been fixed (https://github.com/ansible-collections/community.docker/pull/773). |
| 1560 |
minor_changes: |
| 1561 |
- docker_compose_v2 - add ``scale`` option to allow to explicitly scale services |
| 1562 |
(https://github.com/ansible-collections/community.docker/pull/776). |
| 1563 |
- docker_compose_v2, docker_compose_v2_pull - support ``files`` parameter |
| 1564 |
to specify multiple Compose files (https://github.com/ansible-collections/community.docker/issues/772, |
| 1565 |
https://github.com/ansible-collections/community.docker/pull/775). |
| 1566 |
release_summary: Bugfix and feature release. |
| 1567 |
fragments: |
| 1568 |
- 3.7.0.yml |
| 1569 |
- 773-docker_compose_v2_pull-action-group.yml |
| 1570 |
- 775-docker_compose-files.yml |
| 1571 |
- 776-docker_compose-scale.yml |
| 1572 |
- 779-compose-v2-build.yml |
| 1573 |
modules: |
| 1574 |
- description: Export (archive) Docker images |
| 1575 |
name: docker_image_export |
| 1576 |
namespace: '' |
| 1577 |
release_date: '2024-01-27' |
| 1578 |
3.8.0: |
| 1579 |
changes: |
| 1580 |
bugfixes: |
| 1581 |
- docker_compose_v2 - do not consider a ``Waiting`` event as an action/change |
| 1582 |
(https://github.com/ansible-collections/community.docker/pull/804). |
| 1583 |
- docker_compose_v2 - do not treat service-level pull events as changes to |
| 1584 |
avoid incorrect ``changed=true`` return value of ``pull=always`` (https://github.com/ansible-collections/community.docker/issues/802, |
| 1585 |
https://github.com/ansible-collections/community.docker/pull/803). |
| 1586 |
- docker_compose_v2, docker_compose_v2_pull - fix parsing of pull messages |
| 1587 |
for Docker Compose 2.20.0 (https://github.com/ansible-collections/community.docker/issues/785, |
| 1588 |
https://github.com/ansible-collections/community.docker/pull/786). |
| 1589 |
minor_changes: |
| 1590 |
- docker_compose_v2 - allow to wait until containers are running/health when |
| 1591 |
running ``docker compose up`` with the new ``wait`` option (https://github.com/ansible-collections/community.docker/issues/794, |
| 1592 |
https://github.com/ansible-collections/community.docker/pull/796). |
| 1593 |
- docker_container - the ``pull_check_mode_behavior`` option now allows to |
| 1594 |
control the module's behavior in check mode when ``pull=always`` (https://github.com/ansible-collections/community.docker/issues/792, |
| 1595 |
https://github.com/ansible-collections/community.docker/pull/797). |
| 1596 |
- docker_container - the ``pull`` option now accepts the three values ``never``, |
| 1597 |
``missing_image`` (default), and ``never``, next to the previously valid |
| 1598 |
values ``true`` (equivalent to ``always``) and ``false`` (equivalent to |
| 1599 |
``missing_image``). This allows the equivalent to ``--pull=never`` from |
| 1600 |
the Docker command line (https://github.com/ansible-collections/community.docker/issues/783, |
| 1601 |
https://github.com/ansible-collections/community.docker/pull/797). |
| 1602 |
release_summary: Bugfix and feature release. |
| 1603 |
fragments: |
| 1604 |
- 3.8.0.yml |
| 1605 |
- 786-docker_v2.yml |
| 1606 |
- 796-docker_compose_v2-wait.yml |
| 1607 |
- 797-docker_container-pull.yml |
| 1608 |
- 803-compose-v2-pull.yml |
| 1609 |
- 804-compose-v2-waiting.yml |
| 1610 |
release_date: '2024-02-25' |
| 1611 |
3.8.1: |
| 1612 |
changes: |
| 1613 |
bugfixes: |
| 1614 |
- docker_compose_v2 - do not fail when non-fatal errors occur. This can happen |
| 1615 |
when pulling an image fails, but then the image can be built for another |
| 1616 |
service. Docker Compose emits an error in that case, but ``docker compose |
| 1617 |
up`` still completes successfully (https://github.com/ansible-collections/community.docker/issues/807, |
| 1618 |
https://github.com/ansible-collections/community.docker/pull/810, https://github.com/ansible-collections/community.docker/pull/811). |
| 1619 |
- docker_compose_v2* modules - correctly parse ``Warning`` events emitted |
| 1620 |
by Docker Compose (https://github.com/ansible-collections/community.docker/issues/807, |
| 1621 |
https://github.com/ansible-collections/community.docker/pull/811). |
| 1622 |
- docker_compose_v2* modules - parse ``logfmt`` warnings emitted by Docker |
| 1623 |
Compose (https://github.com/ansible-collections/community.docker/issues/787, |
| 1624 |
https://github.com/ansible-collections/community.docker/pull/811). |
| 1625 |
- docker_compose_v2_pull - fixing idempotence by checking actual pull progress |
| 1626 |
events instead of service-level pull request when ``policy=always``. This |
| 1627 |
stops the module from reporting ``changed=true`` if no actual change happened |
| 1628 |
when pulling. In check mode, it has to assume that a change happens though |
| 1629 |
(https://github.com/ansible-collections/community.docker/issues/813, https://github.com/ansible-collections/community.docker/pull/814). |
| 1630 |
release_summary: Bugfix release |
| 1631 |
security_fixes: |
| 1632 |
- docker_containers, docker_machine, and docker_swarm inventory plugins - |
| 1633 |
make sure all data received from the Docker daemon / Docker machine is marked |
| 1634 |
as unsafe, so remote code execution by obtaining texts that can be evaluated |
| 1635 |
as templates is not possible (https://www.die-welt.net/2024/03/remote-code-execution-in-ansible-dynamic-inventory-plugins/, |
| 1636 |
https://github.com/ansible-collections/community.docker/pull/815). |
| 1637 |
fragments: |
| 1638 |
- 3.8.1.yml |
| 1639 |
- 810-compose-errors.yml |
| 1640 |
- 811-compose-v2-logfmt.yml |
| 1641 |
- 814-docker_compose_v2_pull-idem.yml |
| 1642 |
- inventory-rce.yml |
| 1643 |
release_date: '2024-03-16' |
| 1644 |
3.9.0: |
| 1645 |
changes: |
| 1646 |
bugfixes: |
| 1647 |
- docker_compose_v2* - allow ``project_src`` to be a relative path, by converting |
| 1648 |
it to an absolute path before using it (https://github.com/ansible-collections/community.docker/issues/827, |
| 1649 |
https://github.com/ansible-collections/community.docker/pull/828). |
| 1650 |
- docker_compose_v2* modules - abort with a nice error message instead of |
| 1651 |
crash when the Docker Compose CLI plugin version is ``dev`` (https://github.com/ansible-collections/community.docker/issues/825, |
| 1652 |
https://github.com/ansible-collections/community.docker/pull/826). |
| 1653 |
- inventory plugins - add unsafe wrapper to avoid marking strings that do |
| 1654 |
not contain ``{`` or ``}`` as unsafe, to work around a bug in AWX (https://github.com/ansible-collections/community.docker/pull/835). |
| 1655 |
minor_changes: |
| 1656 |
- The EE requirements now include PyYAML, since the ``docker_compose_v2*`` |
| 1657 |
modules depend on it when the ``definition`` option is used. This should |
| 1658 |
not have a noticable effect on generated EEs since ansible-core itself depends |
| 1659 |
on PyYAML as well, and ansible-builder explicitly ignores this dependency |
| 1660 |
(https://github.com/ansible-collections/community.docker/pull/832). |
| 1661 |
- docker_compose_v2* - the new option ``check_files_existing`` allows to disable |
| 1662 |
the check for one of the files ``compose.yaml``, ``compose.yml``, ``docker-compose.yaml``, |
| 1663 |
and ``docker-compose.yml`` in ``project_src`` if ``files`` is not specified. |
| 1664 |
This is necessary if a non-standard compose filename is specified through |
| 1665 |
other means, like the ``COMPOSE_FILE`` environment variable (https://github.com/ansible-collections/community.docker/issues/838, |
| 1666 |
https://github.com/ansible-collections/community.docker/pull/839). |
| 1667 |
- docker_compose_v2* modules - allow to provide an inline definition of the |
| 1668 |
compose content instead of having to provide a ``project_src`` directory |
| 1669 |
with the compose file written into it (https://github.com/ansible-collections/community.docker/issues/829, |
| 1670 |
https://github.com/ansible-collections/community.docker/pull/832). |
| 1671 |
- vendored Docker SDK for Python - remove unused code that relies on functionality |
| 1672 |
deprecated in Python 3.12 (https://github.com/ansible-collections/community.docker/pull/834). |
| 1673 |
release_summary: Bugfix and feature release. |
| 1674 |
fragments: |
| 1675 |
- 3.9.0.yml |
| 1676 |
- 826-docker-compose-v2-version.yml |
| 1677 |
- 828-compose-project_src.yml |
| 1678 |
- 832-docker_compose_v2-definition.yml |
| 1679 |
- 834-datetime-depr.yml |
| 1680 |
- 835-unsafe.yml |
| 1681 |
- 839-compose_v2-check-file.yml |
| 1682 |
release_date: '2024-04-21' |
| 1683 |
3.10.0: |
| 1684 |
changes: |
| 1685 |
deprecated_features: |
| 1686 |
- docker_compose - the Docker Compose v1 module is deprecated and will be |
| 1687 |
removed from community.docker 4.0.0. Please migrate to the ``community.docker.docker_compose_v2`` |
| 1688 |
module, which works with Docker Compose v2 (https://github.com/ansible-collections/community.docker/issues/823, |
| 1689 |
https://github.com/ansible-collections/community.docker/pull/833). |
| 1690 |
- various modules and plugins - the ``ssl_version`` option has been deprecated |
| 1691 |
and will be removed from community.docker 4.0.0. It has already been removed |
| 1692 |
from Docker SDK for Python 7.0.0, and was only necessary in the past to |
| 1693 |
work around SSL/TLS issues (https://github.com/ansible-collections/community.docker/pull/853). |
| 1694 |
minor_changes: |
| 1695 |
- docker_container - adds ``healthcheck.start_interval`` to support healthcheck |
| 1696 |
start interval setting on containers (https://github.com/ansible-collections/community.docker/pull/848). |
| 1697 |
- docker_container - adds ``healthcheck.test_cli_compatible`` to allow omit |
| 1698 |
test option on containers without remove existing image test (https://github.com/ansible-collections/community.docker/pull/847). |
| 1699 |
- docker_image_build - add ``outputs`` option to allow configuring outputs |
| 1700 |
for the build (https://github.com/ansible-collections/community.docker/pull/852). |
| 1701 |
- docker_image_build - add ``secrets`` option to allow passing secrets to |
| 1702 |
the build (https://github.com/ansible-collections/community.docker/pull/852). |
| 1703 |
- docker_image_build - allow ``platform`` to be a list of platforms instead |
| 1704 |
of only a single platform for multi-platform builds (https://github.com/ansible-collections/community.docker/pull/852). |
| 1705 |
- docker_network - adds ``config_only`` and ``config_from`` to support creating |
| 1706 |
and using config only networks (https://github.com/ansible-collections/community.docker/issues/395). |
| 1707 |
- docker_prune - add new options ``builder_cache_all``, ``builder_cache_filters``, |
| 1708 |
and ``builder_cache_keep_storage``, and a new return value ``builder_cache_caches_deleted`` |
| 1709 |
for pruning build caches (https://github.com/ansible-collections/community.docker/issues/844, |
| 1710 |
https://github.com/ansible-collections/community.docker/issues/845). |
| 1711 |
- docker_swarm_service - adds ``sysctls`` to support sysctl settings on swarm |
| 1712 |
services (https://github.com/ansible-collections/community.docker/issues/190). |
| 1713 |
release_summary: Feature release. |
| 1714 |
fragments: |
| 1715 |
- 3.10.0.yml |
| 1716 |
- 836-docker_swarm_service-sysctls.yml |
| 1717 |
- 843-docker_network-config-from-config-only.yml |
| 1718 |
- 845-docker_prune.yml |
| 1719 |
- 847-docker_container-heackcheck-test_cli_compatible.yml |
| 1720 |
- 848-docker_api-healthcheck-start-interval.yml |
| 1721 |
- 852-docker_image_build.yml |
| 1722 |
- 853-ssl_version.yml |
| 1723 |
- deprecate-compose-v1.yml |
| 1724 |
release_date: '2024-05-19' |
| 1725 |
3.10.1: |
| 1726 |
changes: |
| 1727 |
bugfixes: |
| 1728 |
- vendored Docker SDK for Python - include a hotfix for requests 2.32.0 compatibility |
| 1729 |
(https://github.com/ansible-collections/community.docker/issues/860, https://github.com/docker/docker-py/issues/3256, |
| 1730 |
https://github.com/ansible-collections/community.docker/pull/861). |
| 1731 |
known_issues: |
| 1732 |
- 'Please note that the fix for requests 2.32.0 included in community.docker |
| 1733 |
3.10.1 only |
| 1734 |
|
| 1735 |
fixes problems with the *vendored* Docker SDK for Python code. Modules and |
| 1736 |
plugins that |
| 1737 |
|
| 1738 |
use Docker SDK for Python can still fail due to the SDK currently being |
| 1739 |
incompatible |
| 1740 |
|
| 1741 |
with requests 2.32.0. |
| 1742 |
|
| 1743 |
|
| 1744 |
If you still experience problems with requests 2.32.0, such as error messages |
| 1745 |
like |
| 1746 |
|
| 1747 |
``Not supported URL scheme http+docker``, please restrict requests to ``<2.32.0``. |
| 1748 |
|
| 1749 |
' |
| 1750 |
release_summary: 'Hotfix release for requests 2.32.0 compatibility. |
| 1751 |
|
| 1752 |
' |
| 1753 |
fragments: |
| 1754 |
- 3.10.1.yml |
| 1755 |
- 862-requests.yml |
| 1756 |
release_date: '2024-05-20' |
| 1757 |
3.10.2: |
| 1758 |
changes: |
| 1759 |
bugfixes: |
| 1760 |
- vendored Docker SDK for Python - include a fix requests 2.32.2+ compatibility |
| 1761 |
(https://github.com/ansible-collections/community.docker/issues/860, https://github.com/psf/requests/issues/6707, |
| 1762 |
https://github.com/ansible-collections/community.docker/pull/864). |
| 1763 |
release_summary: Bugfix release. |
| 1764 |
fragments: |
| 1765 |
- 3.10.2.yml |
| 1766 |
- 864-requests.yml |
| 1767 |
release_date: '2024-05-21' |
| 1768 |
3.10.3: |
| 1769 |
changes: |
| 1770 |
bugfixes: |
| 1771 |
- docker and nsenter connection plugins, docker_container_exec module - avoid |
| 1772 |
using the deprecated ``ansible.module_utils.compat.selectors`` module util |
| 1773 |
with Python 3 (https://github.com/ansible-collections/community.docker/issues/870, |
| 1774 |
https://github.com/ansible-collections/community.docker/pull/871). |
| 1775 |
release_summary: Bugfix release. |
| 1776 |
fragments: |
| 1777 |
- 3.10.3.yml |
| 1778 |
- 871-selectors.yml |
| 1779 |
release_date: '2024-05-26' |
| 1780 |
3.10.4: |
| 1781 |
changes: |
| 1782 |
bugfixes: |
| 1783 |
- docker_compose - make sure that the module uses the ``api_version`` parameter |
| 1784 |
(https://github.com/ansible-collections/community.docker/pull/881). |
| 1785 |
- docker_compose_v2* modules - there was no check to make sure that one of |
| 1786 |
``project_src`` and ``definition`` is provided. The modules crashed if none |
| 1787 |
were provided (https://github.com/ansible-collections/community.docker/issues/885, |
| 1788 |
https://github.com/ansible-collections/community.docker/pull/886). |
| 1789 |
release_summary: Bugfix release. |
| 1790 |
fragments: |
| 1791 |
- 3.10.4.yml |
| 1792 |
- 881-docker-compose-v1-api-version.yml |
| 1793 |
- 886-compose-v2-req.yml |
| 1794 |
release_date: '2024-06-16' |
| 1795 |
3.11.0: |
| 1796 |
changes: |
| 1797 |
bugfixes: |
| 1798 |
- docker_compose_v2* modules - fix parsing of skipped pull messages for Docker |
| 1799 |
Compose 2.28.x (https://github.com/ansible-collections/community.docker/issues/911, |
| 1800 |
https://github.com/ansible-collections/community.docker/pull/916). |
| 1801 |
- docker_compose_v2*, docker_stack*, docker_image_build modules - using ``cli_context`` |
| 1802 |
no longer leads to an invalid parameter combination being passed to the |
| 1803 |
corresponding Docker CLI tool, unless ``docker_host`` is also provided. |
| 1804 |
Combining ``cli_context`` and ``docker_host`` is no longer allowed (https://github.com/ansible-collections/community.docker/issues/892, |
| 1805 |
https://github.com/ansible-collections/community.docker/pull/895). |
| 1806 |
- docker_container - fix possible infinite loop if ``removal_wait_timeout`` |
| 1807 |
is set (https://github.com/ansible-collections/community.docker/pull/922). |
| 1808 |
- vendored Docker SDK for Python - use ``LooseVersion`` instead of ``StrictVersion`` |
| 1809 |
to compare urllib3 versions. This is needed for development versions (https://github.com/ansible-collections/community.docker/pull/902). |
| 1810 |
minor_changes: |
| 1811 |
- docker_container - add support for ``device_cgroup_rules`` (https://github.com/ansible-collections/community.docker/pull/910). |
| 1812 |
- docker_container - the new ``state=healthy`` allows to wait for a container |
| 1813 |
to become healthy on startup. The ``healthy_wait_timeout`` option allows |
| 1814 |
to configure the maximum time to wait for this to happen (https://github.com/ansible-collections/community.docker/issues/890, |
| 1815 |
https://github.com/ansible-collections/community.docker/pull/921). |
| 1816 |
fragments: |
| 1817 |
- 895-docker-cli.yml |
| 1818 |
- 902-loose-version.yml |
| 1819 |
- 910-docker_container-device_cgroup_rules.yml |
| 1820 |
- 916-compose-v2-parse.yml |
| 1821 |
- 921-docker_container-healthy.yml |
| 1822 |
- 922-docker_container-wait-fix.yml |
| 1823 |
release_date: '2024-07-09' |
| 1824 |
3.12.0: |
| 1825 |
changes: |
| 1826 |
bugfixes: |
| 1827 |
- docker_compose_v2 - handle yet another random unstructured error output |
| 1828 |
from pre-2.29.0 Compose versions (https://github.com/ansible-collections/community.docker/issues/948, |
| 1829 |
https://github.com/ansible-collections/community.docker/pull/949). |
| 1830 |
- docker_compose_v2 - make sure that services provided in ``services`` are |
| 1831 |
appended to the command line after ``--`` and not before it (https://github.com/ansible-collections/community.docker/pull/942). |
| 1832 |
- docker_compose_v2* modules, docker_image_build - provide better error message |
| 1833 |
when required fields are not present in ``docker version`` or ``docker info`` |
| 1834 |
output. This can happen if Podman is used instead of Docker (https://github.com/ansible-collections/community.docker/issues/891, |
| 1835 |
https://github.com/ansible-collections/community.docker/pull/935). |
| 1836 |
- docker_container - fix idempotency if ``network_mode=default`` and Docker |
| 1837 |
26.1.0 or later is used. There was a breaking change in Docker 26.1.0 regarding |
| 1838 |
normalization of ``NetworkMode`` (https://github.com/ansible-collections/community.docker/issues/934, |
| 1839 |
https://github.com/ansible-collections/community.docker/pull/936). |
| 1840 |
- docker_container - restore behavior of the module from community.docker |
| 1841 |
2.x.y that passes the first network to the Docker Deamon while creating |
| 1842 |
the container (https://github.com/ansible-collections/community.docker/pull/933). |
| 1843 |
- docker_image_build - fix ``--output`` parameter composition for ``type=docker`` |
| 1844 |
and ``type=image`` (https://github.com/ansible-collections/community.docker/issues/946, |
| 1845 |
https://github.com/ansible-collections/community.docker/pull/947). |
| 1846 |
known_issues: |
| 1847 |
- docker_container - when specifying a MAC address for a container's network, |
| 1848 |
and the network is attached after container creation (for example, due to |
| 1849 |
idempotency checks), the MAC address is at least in some cases ignored by |
| 1850 |
the Docker Daemon (https://github.com/ansible-collections/community.docker/pull/933). |
| 1851 |
minor_changes: |
| 1852 |
- docker, docker_api connection plugins - allow to determine the working directory |
| 1853 |
when executing commands with the new ``working_dir`` option (https://github.com/ansible-collections/community.docker/pull/943). |
| 1854 |
- docker, docker_api connection plugins - allow to execute commands with extended |
| 1855 |
privileges with the new ``privileges`` option (https://github.com/ansible-collections/community.docker/pull/943). |
| 1856 |
- docker, docker_api connection plugins - allow to pass extra environment |
| 1857 |
variables when executing commands with the new ``extra_env`` option (https://github.com/ansible-collections/community.docker/issues/937, |
| 1858 |
https://github.com/ansible-collections/community.docker/pull/940). |
| 1859 |
- docker_compose_v2* modules - support Docker Compose 2.29.0's ``json`` progress |
| 1860 |
writer to avoid having to parse text output (https://github.com/ansible-collections/community.docker/pull/931). |
| 1861 |
- docker_compose_v2_pull - add new options ``ignore_buildable``, ``include_deps``, |
| 1862 |
and ``services`` (https://github.com/ansible-collections/community.docker/issues/941, |
| 1863 |
https://github.com/ansible-collections/community.docker/pull/942). |
| 1864 |
- docker_container - when creating a container, directly pass all networks |
| 1865 |
to connect to to the Docker Daemon for API version 1.44 and newer. This |
| 1866 |
makes creation more efficient and works around a bug in Docker Daemon that |
| 1867 |
does not use the specified MAC address in at least some cases, though only |
| 1868 |
for creation (https://github.com/ansible-collections/community.docker/pull/933). |
| 1869 |
release_summary: Bugfix and feature release. |
| 1870 |
fragments: |
| 1871 |
- 3.12.0.yml |
| 1872 |
- 931-compose-2.29.0-json.yml |
| 1873 |
- 933-docker_container-networks.yml |
| 1874 |
- 935-cli-errors.yml |
| 1875 |
- 936-network_mode-default.yml |
| 1876 |
- 940-connection-env.yml |
| 1877 |
- 942-compose-v2-pull.yml |
| 1878 |
- 943-connection.yml |
| 1879 |
- 947-docker_image_build.yml |
| 1880 |
- 949-compose-error.yml |
| 1881 |
release_date: '2024-08-07' |
| 1882 |
3.12.1: |
| 1883 |
changes: |
| 1884 |
deprecated_features: |
| 1885 |
- The collection deprecates support for all ansible-core versions that are |
| 1886 |
currently End of Life, `according to the ansible-core support matrix <https://docs.ansible.com/ansible-core/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix>`__. |
| 1887 |
This means that the next major release of the collection will no longer |
| 1888 |
support ansible-core 2.11, ansible-core 2.12, ansible-core 2.13, and ansible-core |
| 1889 |
2.14. |
| 1890 |
release_summary: Maintenance release with updated documentation and changelog. |
| 1891 |
fragments: |
| 1892 |
- 0-readme.yml |
| 1893 |
- 3.12.1.yml |
| 1894 |
- deprecate-eol-ansible-core.yml |
| 1895 |
release_date: '2024-08-13' |
| 1896 |
3.12.2: |
| 1897 |
changes: |
| 1898 |
bugfixes: |
| 1899 |
- docker_prune - fix handling of lists for the filter options (https://github.com/ansible-collections/community.docker/issues/961, |
| 1900 |
https://github.com/ansible-collections/community.docker/pull/966). |
| 1901 |
release_summary: Bugfix release. |
| 1902 |
fragments: |
| 1903 |
- 3.12.2.yml |
| 1904 |
- 966-prune-filters.yml |
| 1905 |
release_date: '2024-09-17' |
| 1906 |
3.13.0: |
| 1907 |
changes: |
| 1908 |
release_summary: Feature release. |
| 1909 |
fragments: |
| 1910 |
- 3.13.0.yml |
| 1911 |
modules: |
| 1912 |
- description: Run command in a container of a Compose service. |
| 1913 |
name: docker_compose_v2_exec |
| 1914 |
namespace: '' |
| 1915 |
- description: Run command in a new container of a Compose service. |
| 1916 |
name: docker_compose_v2_run |
| 1917 |
namespace: '' |
| 1918 |
release_date: '2024-10-04' |
| 1919 |
3.13.1: |
| 1920 |
changes: |
| 1921 |
bugfixes: |
| 1922 |
- docker_compose_v2 - improve parsing of dry-run image build operations from |
| 1923 |
JSON events (https://github.com/ansible-collections/community.docker/issues/975, |
| 1924 |
https://github.com/ansible-collections/community.docker/pull/976). |
| 1925 |
release_summary: Bugfix release. |
| 1926 |
fragments: |
| 1927 |
- 3.13.1.yml |
| 1928 |
- 976-compose-v2.yml |
| 1929 |
release_date: '2024-10-15' |
| 1930 |
4.0.0: |
| 1931 |
changes: |
| 1932 |
breaking_changes: |
| 1933 |
- docker_container - the default of ``image_name_mismatch`` changed from ``ignore`` |
| 1934 |
to ``recreate`` (https://github.com/ansible-collections/community.docker/pull/971). |
| 1935 |
minor_changes: |
| 1936 |
- docker_compose_v2 - add ``renew_anon_volumes`` parameter for ``docker compose |
| 1937 |
up`` (https://github.com/ansible-collections/community.docker/pull/977). |
| 1938 |
release_summary: Major release with removed deprecated features. |
| 1939 |
removed_features: |
| 1940 |
- The collection no longer supports ansible-core 2.11, 2.12, 2.13, and 2.14. |
| 1941 |
You need ansible-core 2.15.0 or newer to use community.docker 4.x.y (https://github.com/ansible-collections/community.docker/pull/971). |
| 1942 |
- The docker_compose module has been removed. Please migrate to community.docker.docker_compose_v2 |
| 1943 |
(https://github.com/ansible-collections/community.docker/pull/971). |
| 1944 |
- 'docker_container - the ``ignore_image`` option has been removed. Use ``image: |
| 1945 |
ignore`` in ``comparisons`` instead (https://github.com/ansible-collections/community.docker/pull/971).' |
| 1946 |
- 'docker_container - the ``purge_networks`` option has been removed. Use |
| 1947 |
``networks: strict`` in ``comparisons`` instead and make sure that ``networks`` |
| 1948 |
is specified (https://github.com/ansible-collections/community.docker/pull/971).' |
| 1949 |
- various modules and plugins - remove the ``ssl_version`` option (https://github.com/ansible-collections/community.docker/pull/971). |
| 1950 |
fragments: |
| 1951 |
- 4.0.0.yml |
| 1952 |
- 977-renew_anon_volumes.yaml |
| 1953 |
release_date: '2024-10-20' |
| 1954 |
4.0.1: |
| 1955 |
changes: |
| 1956 |
bugfixes: |
| 1957 |
- docker_compose_v2_run - make sure to sanitize ``labels`` before sending |
| 1958 |
them to the Docker Daemon (https://github.com/ansible-collections/community.docker/pull/985). |
| 1959 |
- docker_config - make sure to sanitize ``labels`` before sending them to |
| 1960 |
the Docker Daemon (https://github.com/ansible-collections/community.docker/pull/985). |
| 1961 |
- docker_network - make sure to sanitize ``labels`` before sending them to |
| 1962 |
the Docker Daemon (https://github.com/ansible-collections/community.docker/pull/985). |
| 1963 |
- docker_node - make sure to sanitize ``labels`` before sending them to the |
| 1964 |
Docker Daemon (https://github.com/ansible-collections/community.docker/pull/985). |
| 1965 |
- docker_secret - make sure to sanitize ``labels`` before sending them to |
| 1966 |
the Docker Daemon (https://github.com/ansible-collections/community.docker/pull/985). |
| 1967 |
- docker_swarm - make sure to sanitize ``labels`` before sending them to the |
| 1968 |
Docker Daemon (https://github.com/ansible-collections/community.docker/pull/985). |
| 1969 |
- docker_swarm_service - make sure to sanitize ``labels`` and ``container_labels`` |
| 1970 |
before sending them to the Docker Daemon (https://github.com/ansible-collections/community.docker/pull/985). |
| 1971 |
- docker_volume - make sure to sanitize ``labels`` before sending them to |
| 1972 |
the Docker Daemon (https://github.com/ansible-collections/community.docker/pull/985). |
| 1973 |
release_summary: Bugfix release. |
| 1974 |
fragments: |
| 1975 |
- 4.0.1.yml |
| 1976 |
- 985-label-sanitize.yml |
| 1977 |
release_date: '2024-11-10' |
| 1978 |
4.1.0: |
| 1979 |
changes: |
| 1980 |
bugfixes: |
| 1981 |
- docker_compose_v2_exec, docker_compose_v2_run - fix missing ``--env`` flag |
| 1982 |
while assembling env arguments (https://github.com/ansible-collections/community.docker/pull/992). |
| 1983 |
- docker_host_info - ensure that the module always returns ``can_talk_to_docker``, |
| 1984 |
and that it provides the correct value even if ``api_version`` is specified |
| 1985 |
(https://github.com/ansible-collections/community.docker/issues/993, https://github.com/ansible-collections/community.docker/pull/995). |
| 1986 |
minor_changes: |
| 1987 |
- docker_stack - allow to add ``--detach=false`` option to ``docker stack |
| 1988 |
deploy`` command (https://github.com/ansible-collections/community.docker/pull/987). |
| 1989 |
release_summary: Bugfix and feature release. |
| 1990 |
fragments: |
| 1991 |
- 4.1.0.yml |
| 1992 |
- 987-docker-stack-detach.yml |
| 1993 |
- 992-module-docker_compose_v2_run-fix-env-argument.yml |
| 1994 |
- 995-docker_host_info-return.yml |
| 1995 |
release_date: '2024-11-23' |
| 1996 |
4.2.0: |
| 1997 |
changes: |
| 1998 |
bugfixes: |
| 1999 |
- docker_compose_v2 - when using Compose 2.31.0 or newer, revert to the old |
| 2000 |
behavior that image rebuilds, for example if ``rebuild=always``, only result |
| 2001 |
in ``changed`` if a container has been restarted (https://github.com/ansible-collections/community.docker/issues/1005, |
| 2002 |
https://github.com/ansible-collections/community.docker/issues/pull/1011). |
| 2003 |
- docker_image_build - work around bug resp. very unexpected behavior in Docker |
| 2004 |
buildx that overwrites all image names in ``--output`` parameters if ``--tag`` |
| 2005 |
is provided, which the module did by default in the past. The module now |
| 2006 |
only supplies ``--tag`` if ``outputs`` is empty. If ``outputs`` has entries, |
| 2007 |
it will add an additional entry with ``type=image`` if no entry of ``type=image`` |
| 2008 |
contains the image name specified by the ``name`` and ``tag`` options (https://github.com/ansible-collections/community.docker/issues/1001, |
| 2009 |
https://github.com/ansible-collections/community.docker/pull/1006). |
| 2010 |
- docker_network - added waiting while container actually disconnect from |
| 2011 |
Swarm network (https://github.com/ansible-collections/community.docker/pull/999). |
| 2012 |
- docker_network - containers are only reconnected to a network if they really |
| 2013 |
exist (https://github.com/ansible-collections/community.docker/pull/999). |
| 2014 |
- docker_network - enabled "force" option in Docker network container disconnect |
| 2015 |
API call (https://github.com/ansible-collections/community.docker/pull/999). |
| 2016 |
- docker_swarm_info - do not crash when finding Swarm jobs if ``services=true`` |
| 2017 |
(https://github.com/ansible-collections/community.docker/issues/1003). |
| 2018 |
minor_changes: |
| 2019 |
- docker_compose_v2 - add ``ignore_build_events`` option (default value ``true``) |
| 2020 |
which allows to (not) ignore build events for change detection (https://github.com/ansible-collections/community.docker/issues/1005, |
| 2021 |
https://github.com/ansible-collections/community.docker/issues/pull/1011). |
| 2022 |
- docker_image_build - ``outputs[].name`` can now be a list of strings (https://github.com/ansible-collections/community.docker/pull/1006). |
| 2023 |
- docker_image_build - the executed command is now returned in the ``command`` |
| 2024 |
return value in case of success and some errors (https://github.com/ansible-collections/community.docker/pull/1006). |
| 2025 |
- docker_network - added ``ingress`` option (https://github.com/ansible-collections/community.docker/pull/999). |
| 2026 |
release_summary: Bugfix and feature release. |
| 2027 |
fragments: |
| 2028 |
- 1003-docker_swarm_info-crash.yml |
| 2029 |
- 1006-docker-image-build-outputs.yml |
| 2030 |
- 1011-docker_compose_v2-build-changed.yml |
| 2031 |
- 4.2.0.yml |
| 2032 |
- 999-add-ingress-option-to-docker_network-module.yml |
| 2033 |
release_date: '2024-12-16' |
| 2034 |
4.3.0: |
| 2035 |
changes: |
| 2036 |
minor_changes: |
| 2037 |
- docker_compose_v2* modules - determine compose version with ``docker compose |
| 2038 |
version`` and only then fall back to ``docker info`` (https://github.com/ansible-collections/community.docker/pull/1021). |
| 2039 |
release_summary: Feature release. |
| 2040 |
fragments: |
| 2041 |
- 1021-docker_compose_v2-version-detection.yml |
| 2042 |
- 4.3.0.yml |
| 2043 |
release_date: '2024-12-30' |
| 2044 |
4.3.1: |
| 2045 |
changes: |
| 2046 |
bugfixes: |
| 2047 |
- Fix label sanitization code to avoid crashes in case of errors (https://github.com/ansible-collections/community.docker/issues/1028, |
| 2048 |
https://github.com/ansible-collections/community.docker/pull/1029). |
| 2049 |
release_summary: Bugfix release. |
| 2050 |
fragments: |
| 2051 |
- 1029-sanitize-labels-fail.yml |
| 2052 |
- 4.3.1.yml |
| 2053 |
release_date: '2025-01-23' |
| 2054 |
4.4.0: |
| 2055 |
changes: |
| 2056 |
bugfixes: |
| 2057 |
- docker_compose_v2_run - the module has a conflict between the type of parameter |
| 2058 |
it expects and the one it tries to sanitize. Fix removes the label sanitization |
| 2059 |
step because they are already validated by the parameter definition (https://github.com/ansible-collections/community.docker/pull/1034). |
| 2060 |
- vendored Docker SDK for Python - do not assume that ``KeyError`` is always |
| 2061 |
for ``ApiVersion`` when querying version fails (https://github.com/ansible-collections/community.docker/issues/1033, |
| 2062 |
https://github.com/ansible-collections/community.docker/pull/1034). |
| 2063 |
release_summary: Feature and bugfix release. |
| 2064 |
fragments: |
| 2065 |
- 1034-do-not-sanitize-labels.yaml |
| 2066 |
- 1034-error-msg.yml |
| 2067 |
- 4.4.0.yml |
| 2068 |
modules: |
| 2069 |
- description: Retrieve information on Docker contexts for the current user. |
| 2070 |
name: docker_context_info |
| 2071 |
namespace: '' |
| 2072 |
release_date: '2025-02-13' |
| 2073 |
4.5.0: |
| 2074 |
changes: |
| 2075 |
minor_changes: |
| 2076 |
- docker_compose_v2 - add ``assume_yes`` parameter for ``docker compose up`` |
| 2077 |
(https://github.com/ansible-collections/community.docker/pull/1045). |
| 2078 |
- docker_network - add ``enable_ipv4`` option (https://github.com/ansible-collections/community.docker/issues/1047, |
| 2079 |
https://github.com/ansible-collections/community.docker/pull/1049). |
| 2080 |
release_summary: Feature release. |
| 2081 |
fragments: |
| 2082 |
- 1045-docker-compose-up-yes.yaml |
| 2083 |
- 1049-network-ipv4.yml |
| 2084 |
- 4.5.0.yml |
| 2085 |
release_date: '2025-03-03' |
| 2086 |
4.5.1: |
| 2087 |
changes: |
| 2088 |
bugfixes: |
| 2089 |
- docker_compose_v2 - rename flag for ``assume_yes`` parameter for ``docker |
| 2090 |
compose up`` to ``-y`` (https://github.com/ansible-collections/community.docker/pull/1054). |
| 2091 |
release_summary: Bugfix release. |
| 2092 |
fragments: |
| 2093 |
- 1054-use-correct-flag-for-assume-yes.yaml |
| 2094 |
- 4.5.1.yml |
| 2095 |
release_date: '2025-03-11' |
| 2096 |
4.5.2: |
| 2097 |
changes: |
| 2098 |
bugfixes: |
| 2099 |
- docker_compose_v2 - fix version check for ``assume_yes`` (https://github.com/ansible-collections/community.docker/pull/1054). |
| 2100 |
- docker_compose_v2 - use ``--yes`` instead of ``-y`` from Docker Compose |
| 2101 |
2.34.0 on (https://github.com/ansible-collections/community.docker/pull/1060). |
| 2102 |
release_summary: Bugfix release. |
| 2103 |
fragments: |
| 2104 |
- 1059-fix-version-check-for-assume-yes.yaml |
| 2105 |
- 1060-compose-yes.yml |
| 2106 |
- 4.5.2.yml |
| 2107 |
release_date: '2025-03-22' |
| 2108 |
4.6.0: |
| 2109 |
changes: |
| 2110 |
minor_changes: |
| 2111 |
- docker_container_copy_into - add ``mode_parse`` parameter which determines |
| 2112 |
how ``mode`` is parsed (https://github.com/ansible-collections/community.docker/pull/1074). |
| 2113 |
release_summary: Feature release. |
| 2114 |
fragments: |
| 2115 |
- 1074-mode-octal.yml |
| 2116 |
- 4.6.0.yml |
| 2117 |
release_date: '2025-05-02' |
| 2118 |
4.6.1: |
| 2119 |
changes: |
| 2120 |
bugfixes: |
| 2121 |
- docker_compose_v2 - handle a (potentially unintentional) breaking change |
| 2122 |
in Docker Compose 2.37.0. Note that ``ContainerName`` is no longer part |
| 2123 |
of the return value (https://github.com/ansible-collections/community.docker/issues/1082, |
| 2124 |
https://github.com/ansible-collections/community.docker/pull/1083). |
| 2125 |
- docker_container - fix idempotency if ``command=[]`` and ``command_handling=correct`` |
| 2126 |
(https://github.com/ansible-collections/community.docker/issues/1080, https://github.com/ansible-collections/community.docker/pull/1085). |
| 2127 |
release_summary: Bugfix release. |
| 2128 |
fragments: |
| 2129 |
- 1083-docker_compose_v2-images.yml |
| 2130 |
- 1085-docker_container-command-empty.yml |
| 2131 |
- 4.6.1.yml |
| 2132 |
release_date: '2025-06-09' |
| 2133 |
4.6.2: |
| 2134 |
changes: |
| 2135 |
bugfixes: |
| 2136 |
- docker_compose_v2 - adjust to new dry-run build events in Docker Compose |
| 2137 |
2.39.0+ (https://github.com/ansible-collections/community.docker/pull/1101). |
| 2138 |
release_summary: Bugfix release for Docker Compose 2.39.0+. |
| 2139 |
fragments: |
| 2140 |
- 1101-compose.yml |
| 2141 |
- 4.6.2.yml |
| 2142 |
release_date: '2025-07-26' |
| 2143 |
4.7.0: |
| 2144 |
changes: |
| 2145 |
bugfixes: |
| 2146 |
- docker_image, docker_image_push - work around a bug in Docker 28.3.3 that |
| 2147 |
prevents pushing without authentication to a registry (https://github.com/ansible-collections/community.docker/pull/1110). |
| 2148 |
minor_changes: |
| 2149 |
- docker_swarm_service - add support for ``replicated-job`` mode for Swarm |
| 2150 |
services (https://github.com/ansible-collections/community.docker/issues/626, |
| 2151 |
https://github.com/ansible-collections/community.docker/pull/1108). |
| 2152 |
release_summary: Bugfix and feature release. |
| 2153 |
fragments: |
| 2154 |
- 1108-replicated-job-support.yml |
| 2155 |
- 1110-push-fix.yml |
| 2156 |
- 4.7.0.yml |
| 2157 |
release_date: '2025-08-04' |
| 2158 |
4.8.0: |
| 2159 |
changes: |
| 2160 |
bugfixes: |
| 2161 |
- Avoid deprecated functionality in ansible-core 2.20 (https://github.com/ansible-collections/community.docker/pull/1117). |
| 2162 |
minor_changes: |
| 2163 |
- docker_container - support missing fields and new mount types in ``mounts`` |
| 2164 |
(https://github.com/ansible-collections/community.docker/issues/1129, https://github.com/ansible-collections/community.docker/pull/1134). |
| 2165 |
release_summary: Bugfix and feature release. |
| 2166 |
fragments: |
| 2167 |
- 1117-deprecations.yml |
| 2168 |
- 1134-docker_container-mounts.yml |
| 2169 |
- 4.8.0.yml |
| 2170 |
release_date: '2025-10-03' |
| 2171 |
4.8.1: |
| 2172 |
changes: |
| 2173 |
bugfixes: |
| 2174 |
- Avoid remaining usages of deprecated ``ansible.module_utils.six`` (https://github.com/ansible-collections/community.docker/pull/1133). |
| 2175 |
- Avoid usage of deprecated ``ansible.module_utils.six`` in all code that |
| 2176 |
does not have to support Python 2 (https://github.com/ansible-collections/community.docker/pull/1137, |
| 2177 |
https://github.com/ansible-collections/community.docker/pull/1139). |
| 2178 |
- Avoid usage of deprecated ``ansible.module_utils.six`` in some of the code |
| 2179 |
that still supports Python 2 (https://github.com/ansible-collections/community.docker/pull/1138). |
| 2180 |
minor_changes: |
| 2181 |
- Note that some new code in ``plugins/module_utils/_six.py`` is MIT licensed |
| 2182 |
(https://github.com/ansible-collections/community.docker/pull/1138). |
| 2183 |
release_summary: Maintenance release. |
| 2184 |
fragments: |
| 2185 |
- 1137-six.yml |
| 2186 |
- 1138-six.yml |
| 2187 |
- 1139-six.yml |
| 2188 |
- 4.8.1.yml |
| 2189 |
release_date: '2025-10-05' |
| 2190 |
5.0.0-a1: |
| 2191 |
changes: |
| 2192 |
breaking_changes: |
| 2193 |
- All doc fragments, module utils, and plugin utils are from now on private. |
| 2194 |
They can change at any time, and have breaking changes even in bugfix releases |
| 2195 |
(https://github.com/ansible-collections/community.docker/pull/1144). |
| 2196 |
bugfixes: |
| 2197 |
- docker connection plugin - fix crash instead of warning if Docker version |
| 2198 |
does not support ``remote_user`` (https://github.com/ansible-collections/community.docker/pull/1161). |
| 2199 |
- docker, nsenter connection plugins - fix handling of ``become`` plugin password |
| 2200 |
prompt handling in case multiple events arrive at the same time (https://github.com/ansible-collections/community.docker/pull/1158). |
| 2201 |
- docker_api connection plugin - fix bug that could lead to loss of data when |
| 2202 |
waiting for ``become`` plugin prompt (https://github.com/ansible-collections/community.docker/pull/1152). |
| 2203 |
- docker_compose_v2_exec - fix crash instead of reporting error if ``detach=true`` |
| 2204 |
and ``stdin`` is provided (https://github.com/ansible-collections/community.docker/pull/1161). |
| 2205 |
- docker_compose_v2_run - fix crash instead of reporting error if ``detach=true`` |
| 2206 |
and ``stdin`` is provided (https://github.com/ansible-collections/community.docker/pull/1161). |
| 2207 |
- docker_container_exec - fix bug that could lead to loss of stdout/stderr |
| 2208 |
data (https://github.com/ansible-collections/community.docker/pull/1152). |
| 2209 |
- docker_container_exec - make ``detach=true`` work. So far this resulted |
| 2210 |
in no execution being done (https://github.com/ansible-collections/community.docker/pull/1145). |
| 2211 |
- docker_plugin - fix diff mode for plugin options (https://github.com/ansible-collections/community.docker/pull/1146). |
| 2212 |
minor_changes: |
| 2213 |
- docker_container - add ``driver_opts`` option in ``networks`` (https://github.com/ansible-collections/community.docker/issues/1142, |
| 2214 |
https://github.com/ansible-collections/community.docker/pull/1143). |
| 2215 |
- docker_container - add ``gw_priority`` option in ``networks`` (https://github.com/ansible-collections/community.docker/issues/1142, |
| 2216 |
https://github.com/ansible-collections/community.docker/pull/1143). |
| 2217 |
release_summary: 'First alpha release of community.docker 5.0.0. |
| 2218 |
|
| 2219 |
|
| 2220 |
The main changes are that the collection dropped support for some ansible-core |
| 2221 |
versions that are End of Life, and thus dropped support for Python 2.7. |
| 2222 |
|
| 2223 |
This allowed to modernize the Python code, in particular with type hints. |
| 2224 |
|
| 2225 |
Also all module and plugin utils are now private to the collection, which |
| 2226 |
makes it easier to refactor code. |
| 2227 |
|
| 2228 |
All these changes should have no effect on end-users. |
| 2229 |
|
| 2230 |
|
| 2231 |
The current plan is to release 5.0.0 in time for Ansible 13''s feature freeze, |
| 2232 |
so in roughly one week.' |
| 2233 |
removed_features: |
| 2234 |
- Remove support for Docker SDK for Python version 1.x.y, also known as ``docker-py``. |
| 2235 |
Modules and plugins that use Docker SDK for Python require version 2.0.0+ |
| 2236 |
(https://github.com/ansible-collections/community.docker/pull/1171). |
| 2237 |
- The collection no longer supports Python 3.6 and before. Note that this |
| 2238 |
coincides with the Python requirements of ansible-core 2.17+ (https://github.com/ansible-collections/community.docker/pull/1123). |
| 2239 |
- The collection no longer supports ansible-core 2.15 and 2.16. You need ansible-core |
| 2240 |
2.17.0 or newer to use community.docker 5.x.y (https://github.com/ansible-collections/community.docker/pull/1123). |
| 2241 |
fragments: |
| 2242 |
- 1142-docker-container-network-driver-opts.yml |
| 2243 |
- 1144-private.yml |
| 2244 |
- 1145-fix.yml |
| 2245 |
- 1146-fix.yml |
| 2246 |
- 1152-fix.yml |
| 2247 |
- 1158-select-fix.yml |
| 2248 |
- 1161-fix.yml |
| 2249 |
- 1171-docker-py.yml |
| 2250 |
- 5.0.0-a1.yml |
| 2251 |
- 5.0.0.yml |
| 2252 |
release_date: '2025-10-25' |
| 2253 |
5.0.0: |
| 2254 |
changes: |
| 2255 |
release_summary: 'New major release. |
| 2256 |
|
| 2257 |
|
| 2258 |
The main changes are that the collection dropped support for some ansible-core |
| 2259 |
|
| 2260 |
versions that are End of Life, and thus dropped support for Python 2.7. |
| 2261 |
|
| 2262 |
This allowed to modernize the Python code, in particular with type hints. |
| 2263 |
|
| 2264 |
Also all module and plugin utils are now private to the collection, which |
| 2265 |
|
| 2266 |
makes it easier to refactor code. All these changes should have no effect |
| 2267 |
on |
| 2268 |
|
| 2269 |
end-users.' |
| 2270 |
fragments: |
| 2271 |
- 5.0.0.yml |
| 2272 |
release_date: '2025-11-02' |
| 2273 |
5.0.1: |
| 2274 |
changes: |
| 2275 |
bugfixes: |
| 2276 |
- docker_compose_v2_run - when ``detach=true``, ensure that the returned container |
| 2277 |
ID is not a bytes string (https://github.com/ansible-collections/community.docker/pull/1183). |
| 2278 |
- docker_image - fix 'Cannot locate specified Dockerfile' error (https://github.com/ansible-collections/community.docker/pull/1184). |
| 2279 |
release_summary: Bugfix release. |
| 2280 |
fragments: |
| 2281 |
- 1185-fix.yml |
| 2282 |
- 5.0.1.yml |
| 2283 |
- typing.yml |
| 2284 |
release_date: '2025-11-09' |
| 2285 |
5.0.2: |
| 2286 |
changes: |
| 2287 |
bugfixes: |
| 2288 |
- Docker CLI based modules - work around bug in Docker 29.0.0 that caused |
| 2289 |
a breaking change in ``docker version --format json`` output (https://github.com/ansible-collections/community.docker/issues/1185, |
| 2290 |
https://github.com/ansible-collections/community.docker/pull/1187). |
| 2291 |
- docker_container - fix ``pull`` idempotency with Docker 29.0.0 (https://github.com/ansible-collections/community.docker/pull/1192). |
| 2292 |
- docker_container - fix handling of exposed port ranges. So far, the module |
| 2293 |
used an undocumented feature of Docker that was removed from Docker 29.0.0, |
| 2294 |
that allowed to pass the range to the deamon and let handle it. Now the |
| 2295 |
module explodes ranges into a list of all contained ports, same as the Docker |
| 2296 |
CLI does. For backwards compatibility with Docker < 29.0.0, it also explodes |
| 2297 |
ranges returned by the API for existing containers so that comparison should |
| 2298 |
only indicate a difference if the ranges actually change (https://github.com/ansible-collections/community.docker/pull/1192). |
| 2299 |
- docker_container - fix idempotency for IPv6 addresses with Docker 29.0.0 |
| 2300 |
(https://github.com/ansible-collections/community.docker/pull/1192). |
| 2301 |
- docker_image - fix ``source=pull`` idempotency with Docker 29.0.0 (https://github.com/ansible-collections/community.docker/pull/1192). |
| 2302 |
- docker_image, docker_image_push - adjust image push detection to Docker |
| 2303 |
29 (https://github.com/ansible-collections/community.docker/pull/1199). |
| 2304 |
- docker_image_pull - fix idempotency with Docker 29.0.0 (https://github.com/ansible-collections/community.docker/pull/1192). |
| 2305 |
- docker_network - fix idempotency for IPv6 addresses and networks with Docker |
| 2306 |
29.0.0 (https://github.com/ansible-collections/community.docker/pull/1201). |
| 2307 |
known_issues: |
| 2308 |
- docker_image, docker_image_export - idempotency for archiving images depends |
| 2309 |
on whether the image IDs used by the image storage backend correspond to |
| 2310 |
the IDs used in the tarball's ``manifest.json`` files. The new default backend |
| 2311 |
in Docker 29 apparently uses image IDs that no longer correspond, whence |
| 2312 |
idempotency no longer works (https://github.com/ansible-collections/community.docker/pull/1199). |
| 2313 |
release_summary: Bugfix release for Docker 29. |
| 2314 |
fragments: |
| 2315 |
- 1187-docker.yml |
| 2316 |
- 1192-docker_container.yml |
| 2317 |
- 1199-docker_image-push.yml |
| 2318 |
- 1201-docker_network.yml |
| 2319 |
- 5.0.2.yml |
| 2320 |
release_date: '2025-11-16' |
| 2321 |
5.0.3: |
| 2322 |
changes: |
| 2323 |
bugfixes: |
| 2324 |
- docker_container - when the same port is mapped more than once for the same |
| 2325 |
protocol without specifying an interface, a bug caused an invalid value |
| 2326 |
to be passed for the interface (https://github.com/ansible-collections/community.docker/issues/1213, |
| 2327 |
https://github.com/ansible-collections/community.docker/pull/1214). |
| 2328 |
release_summary: Bugfix release. |
| 2329 |
fragments: |
| 2330 |
- 1214-docker_container-ports.yml |
| 2331 |
- 5.0.3.yml |
| 2332 |
release_date: '2025-11-29' |
| 2333 |
5.0.4: |
| 2334 |
changes: |
| 2335 |
bugfixes: |
| 2336 |
- CLI-based modules - when parsing JSON output fails, also provide standard |
| 2337 |
error output. Also provide information on the command and its result in |
| 2338 |
machine-readable way (https://github.com/ansible-collections/community.docker/issues/1216, |
| 2339 |
https://github.com/ansible-collections/community.docker/pull/1221). |
| 2340 |
- docker_compose_v2, docker_compose_v2_pull - adjust parsing from image pull |
| 2341 |
events to changes in Docker Compose 5.0.0 (https://github.com/ansible-collections/community.docker/pull/1219). |
| 2342 |
release_summary: Bugfix release. |
| 2343 |
fragments: |
| 2344 |
- 1219-compose-v2-pull.yml |
| 2345 |
- 1221-cli-json-errors.yml |
| 2346 |
- 5.0.4.yml |
| 2347 |
release_date: '2025-12-06' |
| 2348 |
5.0.5: |
| 2349 |
changes: |
| 2350 |
bugfixes: |
| 2351 |
- modules and plugins using the Docker SDK for Python - do not automatically |
| 2352 |
set ``tls_hostname`` when ``validate_certs=true`` for Docker SDK for Python |
| 2353 |
7.0.0+ (https://github.com/ansible-collections/community.docker/issues/1225, |
| 2354 |
https://github.com/ansible-collections/community.docker/pull/1226). |
| 2355 |
release_summary: Bugfix release. |
| 2356 |
fragments: |
| 2357 |
- 1226-docker-sdk-tls.yml |
| 2358 |
- 5.0.5.yml |
| 2359 |
release_date: '2025-12-31' |
| 2360 |
5.0.6: |
| 2361 |
changes: |
| 2362 |
bugfixes: |
| 2363 |
- docker_image_pull, docker_container - fix pulled image change detection |
| 2364 |
for Docker 29.2+ (https://github.com/ansible-collections/community.docker/pull/1242). |
| 2365 |
release_summary: Bugfix release. |
| 2366 |
fragments: |
| 2367 |
- 1242-pull.yml |
| 2368 |
- 5.0.6.yml |
| 2369 |
release_date: '2026-02-12' |
| 2370 |
5.1.0: |
| 2371 |
changes: |
| 2372 |
minor_changes: |
| 2373 |
- docker_compose_v2_pull - adds ``ignore_pull_failures`` parameter that passes |
| 2374 |
``--ignore-pull-failures`` to the ``docker compose pull`` call when set |
| 2375 |
to ``true`` (https://github.com/ansible-collections/community.docker/pull/1248). |
| 2376 |
release_summary: Feature release. |
| 2377 |
fragments: |
| 2378 |
- 1248-ignore-pull-failures.yml |
| 2379 |
- 5.1.0.yml |
| 2380 |
release_date: '2026-03-23' |
| 2381 |
5.2.0: |
| 2382 |
changes: |
| 2383 |
minor_changes: |
| 2384 |
- docker_image_export - adds ``platform`` parameter to allow exporting a specific |
| 2385 |
platform variant from a multi-arch image (https://github.com/ansible-collections/community.docker/issues/1064, |
| 2386 |
https://github.com/ansible-collections/community.docker/pull/1251). |
| 2387 |
release_summary: Feature release. |
| 2388 |
fragments: |
| 2389 |
- 1064-docker-image-export-platform.yml |
| 2390 |
- 5.2.0.yml |
| 2391 |
release_date: '2026-04-08' |