jimbo8098 / windows-docker-role

An Ansible Role to Install Docker on Windows
https://galaxy.ansible.com/jimbo8098/windows-docker-role
0 stars 3 forks source link

install aborts with error message on Win10 #8

Open eitzenbe opened 2 years ago

eitzenbe commented 2 years ago

TASK [jimbo8098.windows_docker_role : Install latest Docker version] *** task path: /home/thomas/.ansible/roles/jimbo8098.windows_docker_role/tasks/main.yml:51 redirecting (type: modules) ansible.builtin.win_dsc to ansible.windows.win_dsc fatal: [192.168.2.189]: FAILED! => {"changed": false, "module_version": "1.4.7", "msg": "Failed to invoke DSC Set method: PowerShell DSC resource MSFT_PackageManagement failed to execute Set-TargetResource functionality with error message: The running command stopped because the preference variable \"ErrorActionPreference\" or common parameter is set to Stop: Docker Engine - Enterprise is not supported on Windows 10 client. See https://aka.ms/docker-for-windows instead. ", "reboot_required": false}

jimbo8098 commented 2 years ago

The role is tested to run on Windows Server 2019. There is a way to setup Docker on a Windows 10 client but this involves installing Docker Desktop and is somewhat more difficult. The following article goes through the installation which looks possible to implement in Ansible. If you feel so inclined - you're welcome to PR such a change.

https://docs.docker.com/desktop/windows/install/