zeus 2 years ago
parent
commit
6d8d49c7b7
  1. 41
      docs/modules/install/pages/install-docker.adoc

41
docs/modules/install/pages/install-docker.adoc

@ -88,6 +88,47 @@ docker --version
docker run hello-world
----
=== Set up working X11 forwarding on WSL2
Step A: Install X-Server Windows
https://sourceforge.net/projects/vcxsrv/[X server]
Step B: Configure Display:
on Wsl:
[source,sh]
----
export LIBGL_ALWAYS_INDIRECT=1
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
----
=== Remove the Windows PATH from WSL
Step A: remove paths on runtime
*Add the following code to .bashrc*
[source,sh]
----
PATH=$(/usr/bin/printenv PATH | /usr/bin/perl -ne 'print join(":", grep { !/\/mnt\/[a-z]/ } split(/:/));')
----
-OR-
*Alternative (run once!)*
[source,sh]
----
echo "export PATH=`echo $PATH | tr ':' '\n' | grep -v /mnt/ | tr '\n' ':'`" >> ~/.bashrc
----
Step B: Logout/Login
== Fix "x509: certificate signed by unknown authority" issue
On Error:

Loading…
Cancel
Save