当前容器的发展,对Docker逐渐远离,拥抱Containerd和Podman,目前Podman操作基本与Docker一致,让用户从Docker迁移至Podman成为了可能。
由于CentOS7.9默认安装的都是Podman1.6.4,为了适应更好适应生产环境,需要尽可能的安装新版Podman来解决Bug所带来的困扰,所以就是展开在CentOS、Ubuntu环境上安装新版的研究工作。
直接上代码:
第一步,设置安装源
CentOS7:
cd /etc/yum.repos.d/
wget https://download.opensuse.org/repositories/home:alvistack/CentOS_7/home:alvistack.repo
yum install podman
Ubuntu20.04:
echo 'deb http://download.opensuse.org/repositories/home:/alvistack/xUbuntu_20.04/ /' | sudo tee /etc/apt/sources.list.d/home:alvistack.list
curl -fsSL https://download.opensuse.org/repositories/home:alvistack/xUbuntu_20.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_alvistack.gpg > /dev/null
sudo apt update
sudo apt install podman
Ubuntu22.04:
echo 'deb http