Podman rootless setup
Install podman
dnf install -y podman podman-docker
Enable low ports
if ! grep -q "net.ipv4.ip_unprivileged_port_start=80" /etc/sysctl.conf; then echo "net.ipv4.ip_unprivileged_port_start=80" >> /etc/sysctl.conf; fi
# Reload sysctl
sysctl --system
Create user
useradd -m -s /bin/bash podman
sudo -iu podman
Create podman socket
if ! grep -q "loginctl enable-linger" ~/.bashrc; then echo "loginctl enable-linger $(whoami)" >> ~/.bashrc; fi
if ! grep -q "$temp" ~/.bashrc; then echo "XDG_RUNTIME_DIR=/run/user/$(id -u)" >> ~/.bashrc; fi
source ~/.bashrc