Skip to content

Adding Windows Subsystem for Linux section to the windows documentation#1361

Closed
BalmungSan wants to merge 5 commits intotestcontainers:masterfrom
BalmungSan:wsl-doc
Closed

Adding Windows Subsystem for Linux section to the windows documentation#1361
BalmungSan wants to merge 5 commits intotestcontainers:masterfrom
BalmungSan:wsl-doc

Conversation

@BalmungSan
Copy link
Copy Markdown
Contributor

@BalmungSan BalmungSan commented Apr 6, 2019

Resolves #1359

Anyways, English isn't my first language. So, please be carefully when reviewing, specially with grammar mistakes.

Copy link
Copy Markdown
Member

@kiview kiview left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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). |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering, why is there a diff in all those other lines?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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). |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| 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). |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be spelled "Subsystem"?

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**.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+ 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`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+ 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/`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+ 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/`.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rnorth It should have been fixed, as well as all the other comments in 42529b2 & in 37ff88b

I would be happy to fix any other comment you have :)
(however, I deleted the fork due inactivity)

@BalmungSan
Copy link
Copy Markdown
Contributor Author

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.

Care to explain which ones?
I can only see one, and is that for exposing the tcp port 2375 one has to open the settings menu. Will make that explicit.
Apart from that, do you see any other thing that should be made explicit?

@stale
Copy link
Copy Markdown

stale bot commented Jul 7, 2019

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.

@stale stale bot added stale and removed stale labels Jul 7, 2019
@bsideup
Copy link
Copy Markdown
Member

bsideup commented Jul 19, 2019

@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!

@stale
Copy link
Copy Markdown

stale bot commented Oct 17, 2019

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.

@stale stale bot added the stale label Oct 17, 2019
@rnorth
Copy link
Copy Markdown
Member

rnorth commented Oct 17, 2019

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.

@rnorth
Copy link
Copy Markdown
Member

rnorth commented Jan 23, 2020

Replaced by #2282

@rnorth rnorth closed this Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add WSL section

5 participants