Podman in WSL2
3 分鐘 跟 podman 當好朋友
Install WSL2
Section titled “Install WSL2”👉 Windows Subsystem for Linux Installation Guide for Windows 10
Install Ubuntu (Optional)
Section titled “Install Ubuntu (Optional)”👉 Get Ubuntu - Microsoft Store
Install podman
Section titled “Install podman”👉 How to run Podman on Windows with WSL2
Install podman-compose
Section titled “Install podman-compose”Install python3 and pip:
sudo apt-get -y install python3 python3-venv python3-pippip3 install podman-composeNotice that you have to add ~/.local/bin to PATH
Integrate podman-compose and fish
Section titled “Integrate podman-compose and fish”Install the latest fish shell for fish_add_path if your fish is < 3.3.0:
# Check version$ fish -vfish, version 3.3.1
$ sudo apt-add-repository ppa:fish-shell/release-3$ sudo apt-get update$ sudo apt-get install fishCheck the official document if you use another distribution.
Add into ~/.config/fish/config.fish:
fish_add_path ~/.local/bin