Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
:ghost: Brief Description
We are trying to setup a kitchen environment with WSL1 + Docker Desktop on Windows 10. docker command on WSL talks to Docker Desktop via environment variable DOCKER_HOST set to tcp://localhost:2375, standard docker commands run well with correct information returned.
With this setup, I could create a kitchen with no issue, however, I got "sh: /opt/kitchen/run_command: No such file or directory" error when trying kitchen converge.
Chef Workstation version: 23.7.1042
Cookstyle version: 7.32.2
Chef Infra Client version: 18.2.7
Chef InSpec version: 5.22.3
Chef CLI version: 5.6.12
Chef Habitat version: 1.6.652
Test Kitchen version: 3.5.0
Docker Desktop: 4.21.0
Environment
WSL1 + Docker Desktop on Windows 10, with CentOS 8 container
:speaking_head: Foreword
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
:ghost: Brief Description
We are trying to setup a kitchen environment with WSL1 + Docker Desktop on Windows 10. docker command on WSL talks to Docker Desktop via environment variable DOCKER_HOST set to tcp://localhost:2375, standard docker commands run well with correct information returned.
With this setup, I could create a kitchen with no issue, however, I got "sh: /opt/kitchen/run_command: No such file or directory" error when trying kitchen converge.
There are two issues involved here.
1) "remote_docker_host" is set to false instead of true in our setup because the logic at https://github.com/test-kitchen/kitchen-dokken/blob/main/lib/kitchen/helpers.rb#L264 is incomplete. Though I have docker_host_url set with tcp, the OperatingSystem is Docker Desktop in my case which leads to a false return 2) Even remote_docker_host is set to false, the upload function (https://github.com/test-kitchen/kitchen-dokken/blob/main/lib/kitchen/provisioner/dokken.rb#L63) fails with a unknown reason to me, that leaves no content in /opt/kitchen on the container hence the "No such file or directory" error is returned
Version
Chef Workstation version: 23.7.1042 Cookstyle version: 7.32.2 Chef Infra Client version: 18.2.7 Chef InSpec version: 5.22.3 Chef CLI version: 5.6.12 Chef Habitat version: 1.6.652 Test Kitchen version: 3.5.0 Docker Desktop: 4.21.0
Environment
WSL1 + Docker Desktop on Windows 10, with CentOS 8 container
kitchen.yml:
Scenario
A complete kitchen run from creation to verification with dokken
Steps to Reproduce
Execute "kitchen converge"
Expected Result
converge finishes successfully
Actual Result
Getting "sh: /opt/kitchen/run_command: No such file or directory" error
:heavy_plus_sign: Additional context
Add any other context about the problem here. e.g. related issues or existing pull requests.