安装

sudo apt install podman
1
运行

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:~$
1
2
3
配置

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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
拉取

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:~$
————————————————

知识在分享中升华,思想在交流中沉淀。

原文链接:https://blog.csdn.net/qwfys200/article/details/132232809

By alex

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注