How to install podman on Ubuntu 22.04

安装

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 = "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:~$ 

你可能感兴趣的:(Virtualization,podman,ubuntu,how,install)