Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Docker compose impossible on Windows #416

Closed
declension opened this issue Jul 25, 2017 · 4 comments
Closed

Local Docker compose impossible on Windows #416

declension opened this issue Jul 25, 2017 · 4 comments
Labels

Comments

@declension
Copy link

declension commented Jul 25, 2017

Hi

In 1.4.1, the implementation for the LocalDockerCompose class has a constant specifying the executable name of local Docker Compose.

This is hard-coded to docker-compose which is fine on *nix / OS X, but fails on Windows, which is expecting docker-compose.exe.

It might be nice if this auto-detected Windows and used the .exe version, or even just tried both in turn...

@bsideup
Copy link
Member

bsideup commented Jul 25, 2017

Hi @declension,

Thanks for reporting!

We already have an issue regarding .exe (Damn you, Windows! :D ) here: #62

But it's about docker-machine. Do you want to fix it yourself? Shouldn't be hard, and we're more than happy to receive PRs :)

@declension
Copy link
Author

Thanks @bsideup - I'll try to get some time whilst I still have a Windows machine available (one more day....).

Actually when building testcontainers current master on this same (Windows 10) machine I was getting several test failures, so may be more things to investigate / fix than I thought (related, perhaps).

@barrycommins
Copy link
Contributor

I managed to get this working by adding a copy of docker-compose to my path without the .exe extension.

Obviously a hack, but it seems to work

bsideup pushed a commit that referenced this issue Aug 11, 2017
* Setting platform dependent docker-compose executable name

Fixes #416

* Changed docker-compose executable naming to be more concise

* Reverted Compose executable variable name, added change to CHANGELOG.md
@declension
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants