赞
踩
当前容器的发展,对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://download.opensuse.org/repositories/home:/alvistack/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/home:alvistack.list
- curl -fsSL https://download.opensuse.org/repositories/home:alvistack/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_alvistack.gpg > /dev/null
- sudo apt update
- sudo apt install podman
Ubuntu的其它版本类似上面,不再一一举例
第二步,安装
- #CentOS
- sudo yum -y install podman
-
- #Ubuntu
- sudo apt-get -y update
- sudo apt-get -y install podman
第三步,验证
- podman -v
- podman version 4.1.1
离线安装,请移步到:
运行问题,请移步到:
个人原创,转载请注明来源,谢谢。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。