# $Id$ # Local Food AI - Detailed Installation and Deployment Guide This guide describes how to provision the host hypervisor, install Docker on Ubuntu, clone the repository, check out the correct branch, and launch the application. ## 1. WSL2 Ubuntu Instance Setup To create a dedicated WSL2 environment for the application, execute the following command in an Administrator PowerShell window: ```powershell wsl --install -d Ubuntu-22.04 --name Dopro1 ``` During initialization, configure the default Unix user and password as prompted: ``` Create a default Unix user account: lanfr144 New password: Retype new password: passwd: password updated successfully ``` > [!WARNING] > **WSL Filesystem Mounts**: By default, launching WSL may place you in a Windows filesystem mount (e.g. `/mnt/d/...`). To prevent performance degradation and permission bugs, navigate to your WSL home directory immediately: ```bash cd ~ ``` --- ## 2. Docker & Docker Compose Installation inside WSL Ubuntu To install Docker directly inside your WSL Ubuntu instance (without Docker Desktop): ### Step 2.1: Clean Existing Docker Versions ```bash sudo apt remove -y docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc ``` ### Step 2.2: Add Docker's Official GPG Key & Repository ```bash sudo apt update sudo apt install -y ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc sudo tee /etc/apt/sources.list.d/docker.sources <