DEV Community

Discussion on: Using podman instead of docker on Windows Subsystem for Linux (WSL 2)

Collapse
 
agritheory profile image
Tyler Matteson • Edited

Thanks for this! I just installed Podman on WSL/Ubuntu 18.04 and wanted to leave the instructions for the next poor soul

echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L  https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/Release.key | sudo apt-key add -

sudo apt-get update
sudo apt-get -y install podman
Enter fullscreen mode Exit fullscreen mode
Collapse
 
thetechoddbug profile image
thetechoddbug (José María Gutiérrez)

This is not working for me in WSL1. Are these instructions for WSL2?

Thanks in advance.

Collapse
 
agritheory profile image
Tyler Matteson

Yes, these are for WSL2.

Collapse
 
trabs profile image
Michael • Edited

For 20.04 in January 2022, just replace the version numbers.

Also, if you get the message that the certificate chain is outdated, install current CA certificates first using sudo apt install ca-certificates