Podman rootless containers in RHEL7

Jul 24, 2020 12:26 · 52 words · 1 minute read containers podman rhel7

Quick howto to make podman rootless containers work in RHEL7:

sudo yum clean all
sudo yum update -y
sudo yum install slirp4netns podman -y
echo "user.max_user_namespaces=28633" | sudo tee -a /etc/sysctl.d/userns.conf
sudo sysctl -p /etc/sysctl.d/userns.conf
sudo usermod --add-subuids 200000-300000 --add-subgids 200000-300000 $(whoami)
podman system migrate

Then, logout and log-in again. Easy peasy!

tweet Share