marcy-terui / kitchen-docker_cli

Docker native CLI driver for Test-Kitchen
https://rubygems.org/gems/kitchen-docker_cli
Other
24 stars 10 forks source link

call Docker on tcp socket #8

Open danfromtitan opened 9 years ago

danfromtitan commented 9 years ago

Looks like the driver's using the unix local socket to connect Docker, which means test-kitchen must run on same host with Docker. Would you be able to enhance docker_command by adding a remote Docker host feature ?

marcy-terui commented 9 years ago

We can run test-kitchen with a different host by setting environment variable DOCKER_HOST. However, I am considering to be able to set in .kitchen(.local).yml.

xmik commented 9 years ago

@marcy-terui solution works: I set DOCKER_HOST=tcp://<docker_hostname>:2375, ran kitchen on my workstation, container is created/converged/etc on remote docker host.

marcy-terui commented 9 years ago

@xmik Thank you for your reporting :smile: