Skip to content

Instantly share code, notes, and snippets.

@juliusl
Created March 10, 2022 22:29
Show Gist options
  • Save juliusl/50a3da4ba8904659b862018d2324793c to your computer and use it in GitHub Desktop.
Save juliusl/50a3da4ba8904659b862018d2324793c to your computer and use it in GitHub Desktop.
Install podman for WSL2
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update -qq
sudo apt-get -qq -y install podman
sudo mkdir -p /etc/containers
echo -e "[registries.search]\nregistries = ['docker.io', 'quay.io']" | sudo tee /etc/containers/registries.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment