Last active
July 11, 2024 10:35
-
-
Save leiless/43233485a45c5bc0203292a1c3d00418 to your computer and use it in GitHub Desktop.
HOWTO install podman in Armbian Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Install podman | |
# https://podman.io/getting-started/installation#ubuntu | |
. /etc/os-release | |
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list | |
curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install podman | |
# 2. Install missing dependencies | |
sudo apt-get install -y uidmap fuse-overlayfs slirp4netns | |
# 3. Install cni-plugins | |
# https://github.com/containernetworking/plugins/releases | |
# Or sudo apt-get install -y containernetworking-plugins | |
sudo mkdir -p /usr/local/lib/cni | |
sudo tar xf cni-plugins-linux-arm64-v1.0.1.tgz -C /usr/local/lib/cni | |
ls -l /usr/local/lib/cni | |
# 4. Make an alias | |
sudo ln -s "$(which podman)" "$(dirname "$(which podman)")/docker" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes when you met the SHASUM hash mismatch, you would like to download the
deb
directly.Like:
https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/amd64/podman_3.4.2-1_amd64.deb.mirrorlist
Download from original source(not from the mirror): https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/amd64/podman_3.4.2-1_amd64.deb