当前位置: 首页 > news >正文

Ubuntu安装Podman教程

1、先修改apt源为阿里源加速

备份原文件:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

 修改源配置:

vim sources.list

 删除里面全部内容后,粘贴阿里源:

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

 更新源信息

sudo apt update
sudo apt upgrade

 2、Ubuntu安装Podman分两种情况,一种是Ubuntu版本高于20.10,则可以直接使用apt安装,命令如下:

apt install podman

3、低版本Ubuntu安装podman

3.1、先安装依赖

sudo apt install -y apt-transport-https ca-certificates curl software-properties-common

3.2、添加Podman仓库

curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_18.04/Release.key | sudo gpg --dearmor -o /usr/share/keyrings/libcontainers-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/libcontainers-archive-keyring.gpg] https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_18.04/ /' | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list

3.3、 安装Podman

sudo apt update
sudo apt install podman

3.4、验证安装结果

podman --version

4、更名podman为docker,这样就能使用docker来代替podman执行

alias docker=podman

5、安装podman-compse

pip3 install https://github.com/containers/podman-compose/archive/main.tar.gz


文章转载自:
http://cachinnation.jopebe.cn
http://beachy.jopebe.cn
http://anhinga.jopebe.cn
http://amboyna.jopebe.cn
http://beardtongue.jopebe.cn
http://antitrades.jopebe.cn
http://amdea.jopebe.cn
http://aciduric.jopebe.cn
http://blacktailed.jopebe.cn
http://carphology.jopebe.cn
http://banshee.jopebe.cn
http://amusing.jopebe.cn
http://astonishment.jopebe.cn
http://antitype.jopebe.cn
http://appentice.jopebe.cn
http://absentee.jopebe.cn
http://bureaux.jopebe.cn
http://balayeuse.jopebe.cn
http://antimutagenic.jopebe.cn
http://aeciostage.jopebe.cn
http://afterlight.jopebe.cn
http://caricature.jopebe.cn
http://barrater.jopebe.cn
http://catholyte.jopebe.cn
http://bisulphide.jopebe.cn
http://analemma.jopebe.cn
http://acouphone.jopebe.cn
http://antiestablishment.jopebe.cn
http://booklearned.jopebe.cn
http://chambray.jopebe.cn
http://www.dtcms.com/a/111415.html

相关文章:

  • Spring 核心技术解析【纯干货版】- XXI:Spring 第三方工具整合模块 Spring-Context-Suppor 模块精讲
  • 《古龙群侠传》游戏秘籍
  • 【 <二> 丹方改良:Spring 时代的 JavaWeb】之 Spring Boot 中的监控:使用 Actuator 实现健康检查
  • 【spring cloud Netflix】Eureka注册中心
  • 关于uint8_t、uint16_t、uint32_t、uint64_t的区别与分析
  • Linux(2025.3.15)
  • 安装 TabbyAPI+Exllamav2 和 vLLM 的详细步骤
  • 前后端通信指南
  • C# Winform 入门(7)之简单的抽奖系统邮件
  • #管理Node.js的多个版本
  • 虚拟现实 UI 设计:打造沉浸式用户体验
  • MINIQMT学习课程Day10
  • 欧几里得算法求最大公约数、最小公倍数
  • chromium魔改——CDP(Chrome DevTools Protocol)检测01
  • CCF GESP C++编程 八级认证真题 2025年3月
  • MySQL 性能调优:数据库的极限运动训练
  • [ deepseek 指令篇章 ]300个领域和赛道喂饭级deepseek指令
  • 【数论】 质数
  • 【已解决】Webstorm 每次使用 git pull/push 都要输入令牌/密码登录
  • RFC6937 PRR 的兑换细节
  • [2017][note]基于空间交叉相位调制的两个连续波在few layer铋Bi中的全光switch——
  • AWS数据分析全栈实战(Redshift+SageMaker)
  • MYOJ_4576:(洛谷P1032)[NOIP 2002 提高组]字串变换(BFS提高)
  • 低成本训练垂直领域文娱大模型的技术路径
  • SCADE 6: 面向高安全软件开发的基于模型的解决方案
  • 【每日一个知识点】隐私计算:概念、技术、应用及发展趋势
  • GORM 中 CURD 操作用法详解
  • 7.训练篇5-毕设
  • 数字内容体验的未来方向是什么?
  • 图形渲染中的定点数和浮点数