-
-
Notifications
You must be signed in to change notification settings - Fork 256
Installation: WSL2 Windows
Brett Jia edited this page Sep 6, 2023
·
8 revisions
WSL2 (Windows Subsystem For Linux) installation is experimental and not recommended.
- Install and enable WSL2.
- Install Scrypted using the standard Linux Installation instructions. Alternatively, install with the standard Docker Linux instructions (see below for more details on setting up Docker).
- Enable bridged networking for WSL2.
Docker can be installed either with Docker Desktop, or docker-ce
within your WSL2 distribution. Alternatively, you can use podman
in WSL2, though this has not yet been tested.
The following instructions are for setting up docker-ce
only. These steps assume you are using Ubuntu.
- Open up WSL2, either using
bash.exe
orwsl.exe
. - Configure the upstream
docker-ce
repository:
source /etc/os-release
curl -fsSL https://download.docker.com/linux/${ID}/gpg | sudo apt-key add -
echo "deb [arch=amd64] https://download.docker.com/linux/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
- Install
docker-ce
:
sudo apt install docker-ce docker-ce-cli containerd.io
Optional: Install docker-compose
:
sudo apt install docker-compose
- Add your user account to the
docker
group:
sudo usermod -aG docker $USER
- Start Docker service:
sudo service docker start
Optional: Add a docker-start.bat
file to your Windows startup folder (press "WindowsKey+R", then run "shell:startup") with the following contents:
wsl.exe -u root -e bash -c "service docker start"
This will ensure that Docker service is started every time your Windows machine reboots.
Scrypted Docs have moved. Please visit https://docs.scrypted.app.