This is a revised version of the official Koha wiki at the time of writing: https://wiki.koha-community.org/wiki/Koha-testing-docker#How_to_install_koha-testing-docker_on_Windows
- Open Powershell with admin privileges by pressing Win + X or through the app launcher.
- Type
wsl --install
and hit enter. This will install WSL and prompt you to choose a Linux distribution to install. You can choose Debian, either through the Microsoft Store or by typingwsl --install -d Debian
. - Set the default WSL version to 2 by typing
wsl --set-default-version 2
. - (Optional) Install the new Windows Terminal which allows you to open a shell on your installed Linux distributions. You can install it from the Microsoft Store.
- Open the WSL terminal by typing
wsl
- Type
sudo useradd $USER
and replace$USER
with the name of your choice. - Add the new user to the sudo group by typing
sudo usermod -aG sudo $USER
. - Create a user directory
sudo mkdir /home/$USER
- Adjust the user directory owner
sudo chown $USER:$USER /home/$USER
- Switch to the newly created user:
su - $USER
- Follow the official guide to install Docker on Debian.
- Verify that everything is installed correctly by typing docker run hello-world.
- Create a new directory called git in your home directory by typing
mkdir ~/git
. - Change to the new directory by typing
cd ~/git
. - Clone the koha-testing-docker repository by typing
git clone https://gitlab.com/koha-community/koha-testing-docker.git
. - Clone the Koha repository by typing
git clone https://github.com/Koha-Community/Koha.git
. - Change the ownership of the koha-testing-docker and Koha directories to the new user by typing
sudo chown -R $USER:$USER koha-testing-docker Koha
. - Copy the default
.env
file to a new file called.env
by typingcp koha-testing-docker/env/defaults.env koha-testing-docker/.env
. - Edit the .env file by typing
nano koha-testing-docker/.env
and change theKOHA_IMAGE
variable frommain
tomain-bullseye
. - Save and exit by typing
CTRL+X
, thenY
, thenENTER
.
cd koha-testing-docker
kdt up
If you followed the guide, you should have a running koha-testing-docker
now
and be able to access Koha on http://localhost:8080 for the OPAC
or http://localhost:8081 for the staff client.