- Load OS related variables into shell:
. /etc/os-release
- Add repo:
sudo sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
- Add apt key:
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_${VERSION_ID}/Release.key | sudo apt-key add -
- Run:
sudo apt update
- Install Podman:
sudo apt install podman
- After running the above, you should have a base Podman installation. You can check this by running:
podman info
- To solve this error:
Editunable to write pod event: "write unixgram @00013->/run/systemd/journal/socket: sendmsg: no such file or directory"
/etc/containers/containers.conf
by:
and changesudo nano /etc/containers/containers.conf
events_logger
from:
to:events_logger = "journald"
events_logger = "file"
- To test :
now browse http://localhost:8080/ on your windows host.podman run --name nginx -p 8080:80 -d nginx:alpine
Last active
October 5, 2022 02:19
-
-
Save matinrco/5515e213f6aaadae47dc4af003805385 to your computer and use it in GitHub Desktop.
Setting up Podman on WSL2 (Debian 10/buster) in Windows 10
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source : from here