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

Docker for Windows support #291

Closed
Villane opened this issue Feb 13, 2017 · 6 comments
Closed

Docker for Windows support #291

Villane opened this issue Feb 13, 2017 · 6 comments

Comments

@Villane
Copy link

Villane commented Feb 13, 2017

Would be nice to get support for Docker for Windows.

I switched to Docker for Windows recently, and now I can't run our testcontainers tests locally, because it seems one can't use VirtualBox and Hyper-V at the same time for Docker on Windows 10.

@kiview
Copy link
Member

kiview commented Feb 17, 2017

I think the underlying docker-java library provided basic support for Windows by specifying DOCKER_HOST=tcp://127.0.0.1:2376, not a smooth experience, but it worked.

Maybe this setup is simply not considered a valid environment when determining the strategy, although it might work in theory?

@bsideup
Copy link
Member

bsideup commented Feb 21, 2017

@kiview did you try tcp? How is it so far?

@kiview
Copy link
Member

kiview commented Feb 21, 2017

It works fine with the docker-java client, but testcontainers doesn't recognize the environment based of this parameters it seems.

@bsideup
Copy link
Member

bsideup commented Feb 21, 2017

@kiview ok, cool. @Villane is sitting next to me, I'll try to fix TestContainers on his machine then :) Or did you plan to contribute Docker for Windows support? I got lost a bit :)

@kiview
Copy link
Member

kiview commented Feb 21, 2017

@bsideup yes, I was indeed planning to help with Docker for Windows support, but that's not high on my priority list right now, since we are using Linux after all. I just think this shouldn't be too hard, since there are already valid workarounds regarding docker-java and docker-groovy of how to achieve this.

bsideup added a commit that referenced this issue Feb 21, 2017
bsideup added a commit that referenced this issue Feb 21, 2017
bsideup added a commit that referenced this issue Feb 21, 2017
bsideup added a commit that referenced this issue Feb 21, 2017
bsideup added a commit that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 21, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit to bsideup/testcontainers-java that referenced this issue Feb 22, 2017
bsideup added a commit that referenced this issue Feb 22, 2017
bsideup added a commit that referenced this issue Feb 22, 2017
@Villane
Copy link
Author

Villane commented Feb 22, 2017

Generally seems to work with this PR #297

Getting some connection errors in our tests, but this might be on our side.

rnorth pushed a commit that referenced this issue Mar 3, 2017
rnorth pushed a commit that referenced this issue Mar 3, 2017
@rnorth rnorth closed this as completed in b41a9f5 Mar 3, 2017
rnorth added a commit that referenced this issue Mar 12, 2017
## [1.2.0] - 2017-03-12
### Fixed
- Fix various escaping issues that may arise when paths contain spaces (#263, #279)
- General documentation fixes/improvements (#300, #303, #304)
- Improve reliability of `ResourceReaper` when there are a large number of containers returned by `docker ps -a` (#295)

### Changed
- Support Docker for Windows via TCP socket connection (#291, #297, #309). _Note that Docker Compose is not yet supported under Docker for Windows (see #306)
- Expose `docker-java`'s `CreateContainerCmd` API for low-level container tweaking (#301)
- Shade `org.newsclub` and Guava dependencies (#299, #292)
- Add `org.testcontainers` label to all containers created by Testcontainers (#294)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants