automation: Update community.docker to version 3.6.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
community.docker | galaxy-collection | minor |
3.5.0 -> 3.6.0
|
Release Notes
ansible-collections/community.docker (community.docker)
v3.6.0
======
Release Summary
Bugfix and feature release.
The collection now includes a bunch of new docker_image_*
modules that move features out of the
rather complex docker_image
module. These new modules are easier to use and can better declare whether
they support check mode, diff mode, or none of them.
This version also features modules that support the Docker CLI plugins buildx
and compose
.
The docker_image_build
module uses the docker buildx
command under the hood, and the docker_compose_v2
and docker_compose_v2_pull
modules uses the docker compose
command. All these modules use the Docker CLI
instead of directly talking to the API. The modules support mostly the same interface as the API based modules,
so the main difference is that instead of some Python requirements, they depend on the Docker CLI tool docker
.
Major Changes
- The
community.docker
collection now depends on thecommunity.library_inventory_filtering_v1
collection. This utility collection provides host filtering functionality for inventory plugins. If you use the Ansible community package, both collections are included and you do not have to do anything special. If you install the collection withansible-galaxy collection install
, it will be installed automatically. If you install the collection by copying the files of the collection to a place where ansible-core can find it, for example by cloning the git repository, you need to make sure that you also have to install the dependency if you are using the inventory plugins (https://github.com/ansible-collections/community.docker/pull/698).
Minor Changes
- The
ca_cert
option available to almost all modules and plugins has been renamed toca_path
. The nameca_path
is also used for similar options in ansible-core and other collections. The old name has been added as an alias and can still be used (https://github.com/ansible-collections/community.docker/pull/744). - The
docker_stack*
modules now use the common CLI-based module code added for thedocker_image_build
anddocker_compose_v2
modules. This means that the modules now have various more configuration options with respect to talking to the Docker Daemon, and now also are part of thecommunity.docker.docker
anddocker
module default groups (https://github.com/ansible-collections/community.docker/pull/745). - docker_container - add
networks[].mac_address
option for Docker API 1.44+. Note that Docker API 1.44 no longer uses the globalmac_address
option, this new option is the only way to set the MAC address for a container (https://github.com/ansible-collections/community.docker/pull/763). - docker_image - allow to specify labels and
/dev/shm
size when building images (https://github.com/ansible-collections/community.docker/issues/726, https://github.com/ansible-collections/community.docker/pull/727). - docker_image - allow to specify memory size and swap memory size in other units than bytes (https://github.com/ansible-collections/community.docker/pull/727).
- inventory plugins - add
filter
option which allows to include and exclude hosts based on Jinja2 conditions (https://github.com/ansible-collections/community.docker/pull/698, https://github.com/ansible-collections/community.docker/issues/610).
Bugfixes
- Use
unix:///var/run/docker.sock
instead of the legacyunix://var/run/docker.sock
as default fordocker_host
(https://github.com/ansible-collections/community.docker/pull/736). - docker_image - fix archiving idempotency with Docker API 1.44 or later (https://github.com/ansible-collections/community.docker/pull/765).
New Modules
- docker_compose_v2 - Manage multi-container Docker applications with Docker Compose CLI plugin
- docker_compose_v2_pull - Pull a Docker compose project
- docker_image_build - Build Docker images using Docker buildx
- docker_image_pull - Pull Docker images from registries
- docker_image_push - Push Docker images to registries
- docker_image_remove - Remove Docker images
- docker_image_tag - Tag Docker images with new names and/or tags
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot. The local configuration can be found in the local Renovate Bot repository.