Set Up Your Environment
Requirements
Section titled “Requirements”Your container runtime must have access to at least:
| Resource | Minimum |
|---|---|
| CPU | 4 cores |
| RAM | 10 GiB |
| Storage | 40 GiB |
Install Required Tools
Section titled “Install Required Tools”-
Install Docker Desktop
Download and install Docker Desktop for Mac. Start it and confirm it’s running before continuing.
-
Install Homebrew
Terminal window /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install k3d
k3d runs a lightweight Kubernetes cluster inside Docker.
Terminal window brew install k3d
-
Install Docker Engine
Install Docker Engine for your distribution, or Docker Desktop for Linux.
-
Install Homebrew
Terminal window /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Add
brewto your PATH (the installer prints the exact command for your shell):Terminal window (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> ~/.bashrcInstall required dependencies:
Terminal window sudo apt-get install build-essential && brew install gcc -
Install k3d
Terminal window brew install k3d
-
Install WSL
Open PowerShell as Administrator and run:
Terminal window wsl --installThis installs WSL 2 with Ubuntu. Restart when prompted, then open Ubuntu and set a username and password.
Update packages:
Terminal window sudo apt update && sudo apt upgrade -
Install a container runtime
Option A: Docker Desktop for Windows — integrates automatically with WSL 2. In Docker Desktop settings, enable Use the WSL 2 based engine.
Option B: Docker Engine — install directly inside your WSL Ubuntu distribution as a free alternative.
-
Install Homebrew and k3d in your WSL terminal
Terminal window /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"brew install k3d
Troubleshooting WSL
Section titled “Troubleshooting WSL”- Ubuntu won’t start: Enable virtualization in your BIOS.
- Missing Windows features: Search “Turn Windows features on or off” → enable Virtual Machine Platform and Windows Subsystem for Linux.
- WSL running as version 1: Check with
wsl -l -v. Upgrade withwsl --set-version <distro> 2. - Running Windows in a VM: Enable nested virtualization in both the host BIOS and hypervisor.
Verify
Section titled “Verify”Confirm your tools are installed and working:
docker info # Docker is runningk3d version # k3d is installedBoth commands should return version output without errors.