-
Notifications
You must be signed in to change notification settings - Fork 20
Windows
As of Q3 2019, the recommended approach to run Docker inside WSL v1 (Windows Subsystem for Linux) is to run Docker Desktop (née Docker for Windows). This can be done by following this lengthy but rather simple tutorial.
The key points condensed:
-
Navigate to the Docker Desktop configuration window: go to the systray, right-click the Docker icon, click Settings, and tick Expose daemon on tcp://localhost:2375 without TLS.
-
You need to make sure that the
~/.local/bin
is part of the$PATH
variable. The.profile
file in Ubuntu 18.04 already adds this directory to$PATH
if it exists. So make sure the directory exists by running:mkdir ~/.local/bin
-
Installing Docker inside WSL can be as simple as issuing:
sudo apt install docker.io sudo usermod -aG docker $USER
Then log out and in again.
-
Set the
DOCKER_HOST
environment variable:echo "export DOCKER_HOST=tcp://localhost:2375" >> ~/.bashrc && source ~/.bashrc
-
Make sure the mount points align
[automount] enabled = true root = /
Reboot or issue the following command in an administrator-level PowerShell:
Restart-Service -Name "LxssManager"
Windows 8 introduced two ways of changing between multiple keyboard layouts (and regional settings), Ctrl
+ Space
which cycles between all possibilities, and Alt
+ Shift
which cycles between languages.
My desired settings are the following:
- English language, Hungarian keyboard
- English language, English (US) keyboard
To achieve this, do the following:
- Install Windows with the display language set to English, the keyboard layout set to Hungarian.
- Go to the Control Panel, Clock, Language and Region, Language.
- Click Add a language, choose Hungarian (magyar).
- Go to the freshly added language. You are offered to Download and install language pack. We don't want that.
- Remove the Hungarian layout and add the US layout (not the US-International as it uses flying accents).
The result should look like this:
The regional settings can be edited in the same window, in Change date, time or number formats. This is not affected by the language or the keyboard layout.
Press Win
+ Print Screen
to save a screenshot to the Pictures\Screenshots
folder in your Documents
folder.
Both Windows and git can handle longer filenames, but the git default setting is set to max 255 characters (but why?!)
git config --system core.longpaths true