Skip to content

How to configure podman on WSL2 on the command line? #34

Answered by felipecrs
felipecrs asked this question in Q&A
Discussion options

You must be logged in to vote
$ echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_$(. /etc/os-release && echo $VERSION_ID)/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
$ curl -fsSL https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_$(. /etc/os-release && echo $VERSION_ID)/Release.key | sudo apt-key add -

$ sudo apt update
$ sudo apt install -y podman

$ if [[ ! -f "/etc/containers/containers.conf" ]]; then
  sudo mkdir -p /etc/containers
  sudo cp -f /usr/share/containers/containers.conf /etc/containers/containers.conf
fi
$ sudo sed -i "s/.*cgroup_manager.*=.*/cgroup_manager = \"cgroupfs\"/g" /etc/contai…

Replies: 1 comment

Comment options

felipecrs
Sep 19, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by felipecrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant