Setup Podman on Windows

Setup Windows Linux kernel subsystem

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
$ wsl --set-default-version 2
wsl --list --verbose

Setup Podman

$ cd$ . /etc/os-release$ sudo sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"$ curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -$ 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$ sudo cp /usr/share/containers/containers.conf /etc/containers/
cgroup_manager = "cgroupfs"
events_logger = "file"
$ podman info
$ podman run hello-world
$ podman image ls
$ podman run -it -p 8080:80 nginx 
$ ip addr | grep 172 

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store