Skip to content

podman

wsl: emulate docker and docker-compose using podman

i'm using almalinux 9 as wsl distro, so the commands below is for almalinux.

sudo dnf install podman podman-docker
sudo touch /etc/containers/nodocker

docker-compose must be installed in standalone mode.

sudo curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

enable systemctl on wsl

/etc/wsl.conf
[boot]
systemd=true

run on powershell to restart wsl vm

wsl --shutdown

open wsl again, and enable systemctl

sudo systemctl enable --now podman.socket

profit.