How to install podman on Ubuntu 22.04

本文讲述了如何在使用Podman时遇到错误并解决,涉及到添加unqualified-search-registries配置,以及通过镜像源成功拉取Docker.io的MySQL镜像的过程。
摘要由CSDN通过智能技术生成

安装

sudo apt install podman

运行

lwk@qwfys:~$ podman pull mysql:5.7.43
Error: short-name "mysql:5.7.43" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
lwk@qwfys:~$ 

配置

sudo tee /etc/containers/registries.conf <<-'EOF'
unqualified-search-registries = ["docker.io"]

[[registry]]
prefix = "docker.io"
location = "docker.io"

[[registry.mirror]]
location = "registry.dockermirror.com"

[[registry.mirror]]
location = "we7rwaj4.mirror.aliyuncs.com"

[[registry.mirror]]
location = "docker.mirrors.tuna.tsinghua.edu.cn"

[[registry.mirror]]
location= "ghcr.io"
EOF

拉取

lwk@qwfys:~$ podman pull docker.io/mysql:5.7.43
Trying to pull docker.io/library/mysql:5.7.43...
Getting image source signatures
Copying blob 1ffa0e0ca707 done  
Copying blob 7ca4383b183f done  
Copying blob 70e9ff4420fb done  
Copying blob 3e282e7651b1 done  
Copying blob b4b277ff2929 done  
Copying blob 6eb790cf6382 done  
Copying blob 692fe4469429 done  
Copying blob c0d447d97bbd done  
Copying blob a9ae52de4d77 done  
Copying blob 99ee594517ba done  
Copying blob 66cc05a182b5 done  
Copying config 92034fe9a4 done  
Writing manifest to image destination
Storing signatures
92034fe9a41f4344b97f3fc88a8796248e2cfa9b934be58379f3dbc150d07d9d
lwk@qwfys:~$ 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qwfys200

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值