Docker on Windows with WSL 2¶
- Install WSL 2 with an Ubuntu distribution (
wsl --installin an administrator PowerShell). - Install Docker Desktop and enable the WSL 2 backend and the integration with your Ubuntu distribution.
- Open the Ubuntu terminal and test:
docker run --rm hello-world.
Run the manual commands in the Ubuntu terminal. In PowerShell, replace $PWD by ${PWD} and omit -u "$(id -u):$(id -g)".
Give WSL enough memory and CPUs in %UserProfile%\.wslconfig for large simulations, then run wsl --shutdown.