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

Announcement: WSL2 support #214

Closed
mviereck opened this issue Jan 13, 2020 · 8 comments
Closed

Announcement: WSL2 support #214

mviereck opened this issue Jan 13, 2020 · 8 comments

Comments

@mviereck
Copy link
Owner

mviereck commented Jan 13, 2020

The current master version of x11docker adds support for WSL2 on MS Windows.
runx has been updated for WSL2 support, too. (runx ticket #2)

Please check out if it works as expected and report any issues here.
WSL2 does not run in my Windows VM, so I cannot check it out myself.

Note: In WSL2 x11docker defaults to use the native linux docker within WSL2. If you want to use MobyVM / docker-for-windows instead, please add option --mobyvm.

(In WSL1, Cygwin and MSYS2 x11docker defaults to MobyVM because native linux docker is not supported there.)

@Jawabiscuit
Copy link

Jawabiscuit commented Jan 14, 2020

Hello again! 😄 I didn't get x11docker running on WSL2 the first try.

x11docker.log

Here is a screenshot of docker run -e DISPLAY="$DISPLAY" x11docker/xfce xfce4-terminal

Capture

@mviereck
Copy link
Owner Author

mviereck commented Jan 14, 2020

Thank you for the test!

How did you run X beforehand?
With runx or somehow different?
Did you use the same X session for the provided log and your docker run example?

x11docker.log shows some X authentication issues, even before the container is started, e.g. xwininfo: error: unable to open display "172.26.64.1:0". This would mean that your docker run command should have failed, too, if you've provided the same X setup.

Please try:

runx -- x11docker x11docker/xfce xfce4-terminal

That is likely to fail because you do not have xauth installed. runx should show a warning and recommend to either installxauth or to use option --no-auth. Does it show such a message?

If that fails as expected, please try

runx --no-auth -- x11docker x11docker/xfce xfce4-terminal

The first test should work if you install package xauth.

@mviereck
Copy link
Owner Author

@Jawabiscuit Could you please run the tests noted above?
I'd like to publish a new release including WSL2 support.

@Jawabiscuit
Copy link

Jawabiscuit commented Jan 23, 2020 via email

@eine
Copy link
Contributor

eine commented Jan 28, 2020

As commented in mviereck/runx#2, latest master branches work on MSYS2 for me, but not on Cygwin or WSL1. @mviereck should we discuss it here or there?

@mviereck
Copy link
Owner Author

should we discuss it here or there?

Please open new tickets as said in mviereck/runx#2 so we have WSL2 only in this thread.

@mviereck
Copy link
Owner Author

@Jawabiscuit Could you please run a new test?

The latest release v6.6.1 contains some fixes based on tests by @eine .
x11docker has a new option --runx, you don't need to run runx manually anymore.

Could you please try in WSL2:

x11docker --runx x11docker/xfce xfce4-terminal

@mviereck
Copy link
Owner Author

Closing due to inactivity.
WSL2 support is considered to be experimental only, a message is shown.

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