podman configure insecure certificate registry【podman 设置非安全镜像仓库】

发布时间:2024年01月09日

预备条件

设置

$ vim /etc/hosts
192.168.23.47 registry.ghostwritten.com

$ vim /etc/containers/registries.conf
...
[[registry]]
location = "registry.ghostwritten.com"
insecure = true

$ sudo systemctl restart podman
$  podman login -u admin  registry.ghostwritten.com
Password: 
Login Succeeded!

$ podman pull registry.ghostwritten.com/k8s-public/curlimages/curl:7.85.0
Trying to pull registry.ghostwritten.com/k8s-public/curlimages/curl:7.85.0...
Getting image source signatures
Copying blob df9b9388f04a done  
Copying blob b6a21241ef17 done  
Copying blob 17b4f9600428 done  
Copying blob b07eadfb9305 done  
Copying blob 4ad5b64acddc done  
Copying blob ffaca4cc7d5a done  
Copying blob e02c9f2ce612 done  
Copying blob 8e26c9329104 done  
Copying blob 1000da985f9b done  
Copying blob a4bd3c08ea7a done  
Copying blob a32f5307f213 done  
Copying config dddbb581f8 done  
Writing manifest to image destination
Storing signatures
dddbb581f872d3d5a5083a31888badf4aace9bd73a6393d2289f9d47667b92c2
文章来源:https://blog.csdn.net/xixihahalelehehe/article/details/135487207
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。