Visit https://podman.io
Click on “Get Started”
Scroll Down until you see "Installing Podman"
Click on "Installation Instructions"
Scroll down until you see Windows Subsystems for Linux (WSL) 2.0; Click on:
- How to run Podman on Windows with WSL2
- Here is the link: https://www.redhat.com/sysadmin/podman-windows-wsl2
Below where you see: “Add the Podman PPA and Install Podman”, copy and paste the entire code/command into your Ubuntu terminal. The code/command is below if you want to get it from this post:
. /etc/os-release
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
Use the youtube link below to help you configure your /usr/share/containers.conf file
Youtube Link: https://youtu.be/iOxILJIYsuY
You should follow the information first before you watch the video. You should only watch the video to gain a better understanding of how things work. The codes or commands in this post is more recent and updated as compared to the video.
The video will show you how to access your /usr/share/containers/containers.conf file
You must first uncomment and configure the cgroup_manager line from "systemd" to "cgroupfs"
After you do that, then uncomment: events_logger = "journald" and replace "journald" with the word "file"
So, when you are done, it will look like this: events_logger = "file"
Save and exit the file using your favorite text editor. You can use the nano editor if you’d like.
Like so: cd /usr/share/containers
Sudo nano containers.conf
You can use the Visual Studio Code editor instead of the built-in Ubuntu nano text editor if you had already link the Visual Studio Code editor to your Remote WSL2 Ubuntu 20.04 distro you downloaded from the Microsoft Store.
Top comments (2)
Do
command
, it seperates out thr commands and makes it a lot easier to readThank you so much!