To set up Podman on Windows 11, you have a couple of options: using Podman Desktop or installing Podman via Windows Subsystem for Linux (WSL 2). Here’s a step-by-step guide for both methods:
Method 1: Install Podman Desktop on Windows 11
Download Podman Desktop:
Visit the official Podman Desktop page: https://podman.io/getting-started/ins...
Download the Windows installer (.msi).
Install Podman Desktop:
Run the installer and follow the prompts.
Podman Desktop includes everything you need to run and manage containers via a GUI and CLI.
Run Podman Desktop:
Launch Podman Desktop from your Start menu.
You can manage containers, images, and pods from the interface.
The CLI also works via the integrated terminal.
Method 2: Install Podman using WSL 2 (Recommended for CLI users)
Enable WSL 2 and install a Linux distro:
Open PowerShell as Administrator and run:
wsl --install
This installs WSL 2 and Ubuntu by default.
Restart your PC if prompted.
Open your Linux distro (e.g., Ubuntu) from the Start menu.
Update the package list and install Podman inside WSL: For Ubuntu (inside the WSL terminal), run:
sudo apt update
sudo apt install podman -y
Verify Podman installation:
podman --version
Run Podman commands inside WSL:
You can now use Podman CLI to pull, build, and run containers.
Optional: Integrate WSL Podman with Windows Terminal or other tools.
Notes:
Podman on Windows through WSL 2 runs containers inside the Linux environment.
Podman Desktop simplifies management with a native Windows GUI.
Rootless mode is supported inside WSL.
For GUI apps or more advanced networking, Podman Desktop is easier to start with.