docker_graphics_windows - grand-mother/grand GitHub Wiki

Warning

Possible conflict between VirtualBox and Docker installation requiring WLS package version 2.

See relative post

Windows configuration to enble graphics of Docker of linux image

Installation of X server on Windows : VcXsrv

Use chocolatey to install VcXsrv

choco install vcxsrv

Procedure for each session

Run Xlaunch from the start menu, select:

  • Multiple windows
  • Start no client
  • extra settings, select

3eh1lry7125modpdj6a2

Save 3 times configuration under

  • appdata\Xming
  • userprofile\Desktop
  • userprofile

Create environment variable:

set-variable -name DISPLAY -value <Your IP address>:0.0

Option to add for docker run:

-e DISPLAY=$DISPLAY

Check

python -m tkinter

Reference

From Robin Kretzschmar's tuto thank to him.