Containers

Install Podman

A free Docker alternative that runs containers without a background daemon.

  1. Install Podman
    Terminal
    brew install podman
  2. Create and start the Podman machine
    Terminal
    podman machine init && podman machine start

    On a Mac, containers run inside a small Linux virtual machine.

Check it worked

  1. Run a test container
    Terminal
    podman run quay.io/podman/hello
Undo it
  1. Remove the machine and Podman
    Terminal
    podman machine rm -f && brew uninstall podman
  1. Install PodmanNeeds sudo
    Terminal · Ubuntu / Debian
    sudo apt install -y podman

Check it worked

  1. Run a test container
    Terminal · Ubuntu / Debian
    podman run quay.io/podman/hello
Undo it
  1. Uninstall PodmanNeeds sudo
    Terminal · Ubuntu / Debian
    sudo apt remove -y podman
  1. Install Podman
    PowerShell
    winget install RedHat.Podman

    Uses WSL, so turn that on first if you haven't (wsl --install). Close and reopen PowerShell afterwards.

  2. Create and start the Podman machine
    PowerShell
    podman machine init; podman machine start

Check it worked

  1. Run a test container
    PowerShell
    podman run quay.io/podman/hello
Undo it
  1. Remove the machine and Podman
    PowerShell
    podman machine rm -f; winget uninstall RedHat.Podman