Skip to content

Docker on Windows with WSL 2

  1. Install WSL 2 with an Ubuntu distribution (wsl --install in an administrator PowerShell).
  2. Install Docker Desktop and enable the WSL 2 backend and the integration with your Ubuntu distribution.
  3. 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.