From 79667163fb4afa8dfb17f47483512662663f3a0e Mon Sep 17 00:00:00 2001 From: Theodoros Georgomanolis Date: Sat, 15 Apr 2023 13:31:43 +0300 Subject: [PATCH] Fix ansible docker role - Rename buildx binary to have the correct name in order to recognized as cli-plugin - Fix docker buildx version command --- provisioners/ansible/roles/docker/defaults/main.yml | 2 -- provisioners/ansible/roles/docker/tasks/main.yml | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/provisioners/ansible/roles/docker/defaults/main.yml b/provisioners/ansible/roles/docker/defaults/main.yml index 23aa221..f5e9c9f 100644 --- a/provisioners/ansible/roles/docker/defaults/main.yml +++ b/provisioners/ansible/roles/docker/defaults/main.yml @@ -10,8 +10,6 @@ docker_config: dns: '{{ docker_dns_servers }}' insecure-registries: '{{ docker_insecure_registries }}' registry-mirrors: '{{ docker_registries_mirror }}' - features: - buildkit: true builder: gc: enabled: true diff --git a/provisioners/ansible/roles/docker/tasks/main.yml b/provisioners/ansible/roles/docker/tasks/main.yml index 7676c3a..6b6f7a1 100644 --- a/provisioners/ansible/roles/docker/tasks/main.yml +++ b/provisioners/ansible/roles/docker/tasks/main.yml @@ -164,12 +164,12 @@ - name: 'Get Docker buildx plugin' get_url: url: '{{ docker_buildx_download_url }}' - dest: '{{ ansible_env.HOME }}/.docker/cli-plugins/docker_buildx' + dest: '{{ ansible_env.HOME }}/.docker/cli-plugins/docker-buildx' mode: '0550' when: 'docker_buildx_install | bool' - name: 'Verify Docker buildx installation' - shell: 'docker buildx --version' + shell: 'docker buildx version' args: executable: '/bin/bash' changed_when: false