Container Runtime Setup¶
Choose your preferred container runtime environment. We recommend either Docker or Podman.
Docker Installation¶
-
Install Docker Desktop:
- Download Docker Desktop
- Run the installer
- During installation, ensure "WSL 2" option is selected
-
Post-installation:
-
Test Docker
-
Configure WSL 2 (if not already done):
-
Install Docker Desktop using Homebrew:
-
Start Docker Desktop:
-
Wait for Docker to start, then verify
-
Test Docker
-
Optional: Add Docker completion to your shell (for zsh):
-
Install Docker Engine:
-
Add the repository to Apt sources
-
Install Docker packages
-
Post-installation steps:
-
Apply group changes (or log out and back in)
-
Test Docker
Podman Installation¶
-
Install Podman Desktop:
- Download Podman Desktop
- Run the installer - Follow the installation wizard
-
Verify installation:
-
Install Podman using Homebrew:
-
Initialize and start Podman:
-
Optional: Add Podman completion to your shell (for zsh):
Container Compose Setup¶
Docker Compose is included with Docker Desktop for Windows and macOS.
For Linux:¶
# Install Docker Compose plugin
sudo apt-get update
sudo apt-get install docker-compose-plugin
# Verify installation
docker compose version
Container Configuration¶
Configure Docker resources (in Docker Desktop): 1. Open Docker Desktop 2. Go to Settings (⚙️) 3. Recommended settings: - CPUs: At least 2 - Memory: At least 4 GB - Swap: At least 1 GB - Disk image size: At least 60 GB
Configure Podman machine resources:
```{ .sh .copy } # Create a new machine with custom resources podman machine init --cpus 2 --memory 4096 --disk-size 60
# Start the machine
podman machine start
```
Verify Installation¶
Test your container environment with a simple container:
-
Pull and run nginx
-
Check container status
-
Stop and remove the container