geerlingguy / ansible-role-docker

Ansible Role - Docker
https://galaxy.ansible.com/geerlingguy/docker/
MIT License
1.81k stars 853 forks source link

Install docker-buildx-plugin option? #405

Closed rltas closed 12 months ago

rltas commented 1 year ago

I believe similar to docker_install_compose_plugin, it would make sense to have an option docker_install_buildx_plugin to install docker-buildx-plugin? I ran into an issue where it was missing when deploying the Matrix Ansible Playbook on an Ubuntu 22.04 LTS host with APT::Install-Recommends "false";.

danielwoodz commented 1 year ago

This is probably due to a change in docker 23.0. buildx is no longer included with docker-cli. When docker version is >= 23, you need to also install docker-buildx-plugin

You can fix this by overriding the default package list in your inventory:

docker_packages:
  - "docker-ce"
  - "docker-ce-cli"
  - "docker-ce-rootless-extras"
  - "docker-buildx-plugin"
  - "containerd.io"
github-actions[bot] commented 1 year ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 12 months ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.