李光春

Debian12安装Podman

· 李光春

安装(稳定版) https://podman.io/docs/installation#debian

apt-get update
apt-get install podman podman-compose
podman version
podman-compose version

下面是安装最新版

准备环境

apt-get update
apt-get install curl gpg gnupg2 software-properties-common apt-transport-https lsb-release ca-certificates

下载并导入存储库的 GPG 密钥

wget http://downloadcontent.opensuse.org/repositories/home:/alvistack/Debian_12/Release.key -O alvistack_key
cat alvistack_key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/alvistack.gpg >/dev/null

将存储库添加到系统

echo "deb http://downloadcontent.opensuse.org/repositories/home:/alvistack/Debian_12/ /" | sudo tee /etc/apt/sources.list.d/alvistack.list

安装

apt-get update && apt-get upgrade
apt-get install podman python3-podman-compose netavark aardvark-dns criu
podman version
podman-compose version