跳到內容

Podman in WSL2

3 分鐘 跟 podman 當好朋友

👉 Windows Subsystem for Linux Installation Guide for Windows 10

👉 Get Ubuntu - Microsoft Store

👉 How to run Podman on Windows with WSL2

Install python3 and pip:

Terminal window
sudo apt-get -y install python3 python3-venv python3-pip
pip3 install podman-compose

Notice that you have to add ~/.local/bin to PATH

Install the latest fish shell for fish_add_path if your fish is < 3.3.0:

Terminal window
# Check version
$ fish -v
fish, version 3.3.1
$ sudo apt-add-repository ppa:fish-shell/release-3
$ sudo apt-get update
$ sudo apt-get install fish

Check the official document if you use another distribution.

Add into ~/.config/fish/config.fish:

Terminal window
fish_add_path ~/.local/bin