Adding Windows Subsystem for Linux section to the windows documentation#1361
Adding Windows Subsystem for Linux section to the windows documentation#1361BalmungSan wants to merge 5 commits intotestcontainers:masterfrom BalmungSan:wsl-doc
Conversation
kiview
left a comment
There was a problem hiding this comment.
Looks good, thanks!
Just some minor remarks.
Although there are just some little steps required, that should be self-explanatory if you have good experience about Docker for Windows, I think it's a good idea to add this to the docs to make it easier for newcomers.
| | 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 | Docker v17.06 | *Support is best-efforts at present.* Only Linux Containers (LCOW) are supported at the moment. See [Windows Support](windows.md). | |
There was a problem hiding this comment.
Just wondering, why is there a diff in all those other lines?
There was a problem hiding this comment.
All these lines had an enormous amount of whitespace characters to fill the last column to make the last pipe (|) align.
They took up to three lines of my console on a 1920 x 1080 monitor.
IMHO, that was simply unnecessary and instead of making the code look more ordered (which cab be said for the first two columns) it made it worse.
| | 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 | Docker v17.06 | *Support is best-efforts at present.* Only Linux Containers (LCOW) are supported at the moment. See [Windows Support](windows.md). | | ||
| | Windows - Windows Substyem for Linux | Docker v17.06 | *Support is best-efforts at present.* Only Linux Containers (LCOW) are supported at the moment. See [Windows Support](windows.md). | |
There was a problem hiding this comment.
| | Windows - Windows Substyem for Linux | Docker v17.06 | *Support is best-efforts at present.* Only Linux Containers (LCOW) are supported at the moment. See [Windows Support](windows.md). | | |
| | Windows - Windows Substyem 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). | |
| Testcontainers supports communicating with Docker for Windows within the Windows Subsystem for Linux *([**WSL**](https://docs.microsoft.com/en-us/windows/wsl/about))*. | ||
| The following additional configurations steps are required: | ||
|
|
||
| + Expose the Docker for windows daemon on the `2375` tcp port without **TLS**. |
There was a problem hiding this comment.
| + Expose the Docker for windows daemon on the `2375` tcp port without **TLS**. | |
| + Expose the Docker for Windows daemon on tcp port `2375` without **TLS**. |
| The following additional configurations steps are required: | ||
|
|
||
| + Expose the Docker for windows daemon on the `2375` tcp port without **TLS**. | ||
| + Set the `DOCKER_HOST` environment variable as `tcp://localhost:2375`. |
There was a problem hiding this comment.
| + Set the `DOCKER_HOST` environment variable as `tcp://localhost:2375`. | |
| + Set the `DOCKER_HOST` environment variable inside the WSL shell to `tcp://localhost:2375`. |
|
|
||
| + Expose the Docker for windows daemon on the `2375` tcp port without **TLS**. | ||
| + Set the `DOCKER_HOST` environment variable as `tcp://localhost:2375`. | ||
| + Modify the `/ect/wsl.conf` file to mount the windows drivers on `/` instead of on `/mnt/`. |
There was a problem hiding this comment.
| + Modify the `/ect/wsl.conf` file to mount the windows drivers on `/` instead of on `/mnt/`. | |
| + Modify the `/ect/wsl.conf` file to mount the windows filesystem on `/` instead of on `/mnt/`. |
There was a problem hiding this comment.
I disagree with this one.
Both Docker for Windows and Nick's post refer to these as Drives (I used drivers by mistake, will fix it).
There was a problem hiding this comment.
Shall we go with drives then? I don't see too much of a clarity difference, as long as the accidental typo of drivers is fixed.
Care to explain which ones? |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this. |
|
@BalmungSan the PR is pretty hard to review due to the whitespace change. Could you please revert it, and create a follow up PR to only fix the whitespaces later? Thanks! |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this. |
|
It's a shame that this one had become stale - if anybody would like to finish this off (including @BalmungSan) please do so. It'd be good to update this area of the docs. |
|
Replaced by #2282 |
Resolves #1359
Anyways, English isn't my first language. So, please be carefully when reviewing, specially with grammar mistakes.