libcompose icon indicating copy to clipboard operation
libcompose copied to clipboard

Pass a docker host option to libcompose

Open ghost opened this issue 8 years ago • 1 comments

Hello,

is there a way to pass a docker host (docker client) to libcompose on which the commands should be executed?

Because for now, if I'm not wrong, the commands are executed locally. I want to be able to provide a host to libcompose.

Thank you.

ghost avatar Nov 25 '16 12:11 ghost

You can pass in a ClientFactory to NewProject (https://github.com/docker/libcompose/blob/master/docker/project.go#L21) to accomplish this.

joshwget avatar Jan 18 '17 00:01 joshwget