Token2Shell can directly connect to Docker containers. When you connect to a container from Token2Shell, Token2Shell automatically configures it to properly redirect Linux GUI apps to X410. So when you want to use a Linux GUI app from your container, you just need to install its package and run it!
Sharing Windows TrueType Fonts
If you want to share Windows TrueType fonts with a Docker container, you can mount the Windows font folder while creating a container and add it to ‘/etc/fonts/local.conf’ file. For example, let’s assume your Windows fonts are in ‘C:\Windows\Fonts’ folder:
STEP 1 Create a container and mount the folder
docker create -v C:/Windows/Fonts:/mnt/winfonts:ro -t -i token2shell/console /bin/bash
‘:ro’ is appended in order to make the mounted folder read-only. Please also note that Linux GUI apps usually expect to have the locale settings (ex. LC_ALL) set to UTF-8. Our ‘token2shell/console‘ image already has those settings configured to "en_US.UTF-8".
If you need to change the locale settings, please consult your OS manual for instructions.
STEP 2 Connect to the container and create a ‘/etc/fonts/local.conf’ file
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <dir>/mnt/winfonts</dir> </fontconfig>