-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
#291 Docker for Windows #297
Conversation
Great experience using this on Windows. Just tested it on my Windows Laptop and was happy to see I didn't have to configure any additional JVM properties or ENV variables (I think the docker-java lib behaved differently). However, docker-compose doesn't seem to work for me in the current implementation. I get the following error i.e. in
I've got the same error in the docker-compose tests of my spock extension. |
Has anyone looked into this apparent problem with Compose when using this approach? |
Can someone else reproduce the error I've posted? |
@rnorth it seems like a problem with Docker Compose integration on Windows, not the Docker for Windows itself. @kiview I can, fails on my machine too |
👍 sure, we can split compose support for windows if we have to. I was just wondering whether there's something unsafe about the approach of volume mounting the docker socket (here) on Docker for Windows. It would seem unlikely, but I can't think of many other things it could be. |
@rnorth could be |
I think the mounting does nothing or might create an empty directory somewhere. Not sure though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - only trivial comments
public class WindowsClientProviderStrategy extends DockerClientProviderStrategy { | ||
|
||
private static final int PING_TIMEOUT_DEFAULT = 5; | ||
private static final String PING_TIMEOUT_PROPERTY_NAME = "testcontainers.namedpipesocketprovider.timeout"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably change this name since we're not using named pipes
docs/compatibility.md
Outdated
@@ -9,4 +9,4 @@ | |||
| Mac OS X - Docker Toolbox | Docker Machine v0.8.0 | | | |||
| Mac OS X - Docker for Mac | 1.12.0 | *Support is best-efforts at present*. `getTestHostIpAddress()` is [not currently supported](https://github.com/testcontainers/testcontainers-java/issues/166) due to limitations in Docker for Mac. | | |||
| Windows - Docker Toolbox | | *Support is limited at present and this is not currently tested on a regular basis*. | | |||
| Windows - Docker for Windows Beta | | *Not currently supported*. | | |||
| Windows - Docker for Windows | | *Supported, but not currently tested on a regular basis.* | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just add the note re Docker Compose not currently working, then 👍
…tests in the docs
@rnorth I did the changes you requested, please take another look |
Looks good to me, thanks @bsideup ! |
## [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)
No description provided.