You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Post an issue](https://github.com/testcontainers/testcontainers-java/issues) if you find any bugs
6
6
* Contribute improvements or fixes using a [Pull Request](https://github.com/testcontainers/testcontainers-java/pulls). If you're going to contribute, thank you! Please just be sure to:
7
-
* discuss with the authors on an issue ticket prior to doing anything big
8
-
* follow the style, naming and structure conventions of the rest of the project
9
-
* make commits atomic and easy to merge
7
+
* discuss with the authors on an issue ticket prior to doing anything big.
8
+
* follow the style, naming and structure conventions of the rest of the project.
9
+
* make commits atomic and easy to merge.
10
10
* when updating documentation, please see [our guidance for documentation contributions](contributing_docs.md).
11
11
* verify all tests are passing. Build the project with `./gradlew check` to do this.
12
12
**N.B.** Gradle's Build Cache is enabled by default, but you can add `--no-build-cache` flag to disable it.
Copy file name to clipboardExpand all lines: docs/supported_docker_environment/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
| 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. |
13
13
| Windows - Docker Toolbox ||*Support is limited at present and this is not currently tested on a regular basis*. |
14
14
| Windows - Docker for Windows ||*Support is best-efforts at present.* Only Linux Containers (LCOW) are supported at the moment. See [Windows Support](windows.md)|
15
+
| Windows - Windows Subsystem for Linux (WSL) | Docker v17.06 |*Support is best-efforts at present.* Only Linux Containers (LCOW) are supported at the moment. See [Windows Support](windows.md). |
Copy file name to clipboardExpand all lines: docs/supported_docker_environment/windows.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,25 @@ effort.
23
23
24
24
* WCOW is currently not supported, since Testcontainers uses auxiliary Linux containers for certain tasks and Docker for Windows does not support hybrid engine mode at the time of writing.
25
25
26
+
## Windows Subsystem for Linux
27
+
28
+
Testcontainers supports communicating with Docker for Windows within the Windows Subsystem for Linux *([**WSL**](https://docs.microsoft.com/en-us/windows/wsl/about))*.
29
+
The following additional configurations steps are required:
30
+
31
+
+ Expose the Docker for Windows daemon on tcp port `2375` without **TLS**.
32
+
*(Right-click the Docker for Windows icon on the task bar, click setting and go to `General`)*.
33
+
34
+
+ Set the `DOCKER_HOST` environment variable inside the **WSL** shell to `tcp://localhost:2375`.
35
+
It is recommended to add this to your `~/.bashrc` file, so it’s available every time you open your terminal.
36
+
37
+
+**Optional** - Only if volumes are required:
38
+
Inside the **WSL** shell, modify the `/ect/wsl.conf` file to mount the Windows drives on `/` instead of on `/mnt/`.
39
+
*(Reboot required after this step)*.
40
+
Remember to share the drives, on which you will store your volumes, with Docker for Windows.
41
+
*(Right-click the Docker for Windows icon on the task bar, click setting and go to `Shared Drives`)*.
42
+
43
+
More information about running Docker within the **WSL** can be found [here](https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly).
44
+
26
45
## Reporting issues
27
46
28
47
Please report any issues with the Windows build of Testcontainers [here](https://github.com/testcontainers/testcontainers-java/issues)
0 commit comments