Jump to content

Podman

From postmarketOS Wiki

Podman / Docker

use podman instead of docker since it runs without sudo.

sudo apk add podman podman-docker
sudo rc-update add cgroups
sudo rc-service cgroups start

#remove folder so it will be created with the right permission on first run:
sudo rm -rf ~/.local/share/containers/storage

sudo touch /etc/subuid
sudo touch /etc/subgid

# enable rootless mode
echo "tun" | sudo tee -a /etc/modules
echo "<username>:100000:65536" | sudo tee -a /etc/subgid
echo "<username>:100000:65536" | sudo tee -a /etc/subuid

sudo chmod u+s /usr/bin/newuidmap
sudo chmod u+s /usr/bin/newgidmap

podman system migrate

sudo touch /etc/containers/nodocker 

# reboot

Requirements

The containerd daemon used by both Docker and Podman requires certain container-related Kconfig options to be enabled. If the daemon complains about a missing kernel module, you might have to recompile the kernel to enable them manually.

See also