Environment specifics: WSL v2
Backend.AI supports running on WSL (Windows Subsystem for Linux) version 2. However, you need to configure some special options so that the WSL distribution can interact with the Docker Desktop service.
Configuration of Docker Desktop for Windows
Turn on WSL Integration on Settings → Resources → WSL INTEGRATION. For the most cases, this should be already configured when you install Docker Desktop for Windows.
See also
Configuration of WSL
Create or modify
/etc/wsl.confusingsudoin the WSL shell.Write down this and save.
[automount] root = / options = "metadata"
Run
wsl --shutdownin a PowerShell prompt to restart the WSL distribution to ensure yourwsl.confupdates applied.Enter the WSL shell again. If it is applied, your path must appears like
/c/some/pathinstead of/mnt/c/some/path.Run
sudo mount --make-rshared /in the WSL shell. Otherwise, your container creation from Backend.AI will fail with an error message likeaiodocker.exceptions.DockerError: DockerError(500, 'path is mounted on /d but it is not a shared mount.').
Installation of Backend.AI
Now you may run the installer in the WSL shell.