#!/usr/bin/env bash
# install-podman.sh
# Podman — Daemonless, rootless container engine with a Docker-compatible CLI.
# Target: Ubuntu / Debian. Safe to re-run.
# Source guide: devops-hub/tools/podman.html

set -euo pipefail

if [[ $EUID -eq 0 ]]; then
  echo "Run this as a regular sudo-capable user, not root." >&2
  exit 1
fi

echo "==> Update package index"
sudo apt-get update

echo "==> Install Podman"
sudo apt-get install -y podman

echo "==> Verify"
podman run hello-world

echo "==> Done. Podman installation finished."
