预备条件
- docker registry仓库私搭并配置证书
- centos 7.9 部署 harbor 镜像仓库实践
- harbor 部署入门指南
- Podman 部署私有镜像仓库
设置
$ vim /etc/hosts192.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 adminregistry.ghostwritten.comPassword: Login Succeeded!$ podman pull registry.ghostwritten.com/k8s-public/curlimages/curl:7.85.0Trying to pull registry.ghostwritten.com/k8s-public/curlimages/curl:7.85.0...Getting image source signaturesCopying blob df9b9388f04a doneCopying blob b6a21241ef17 doneCopying blob 17b4f9600428 doneCopying blob b07eadfb9305 doneCopying blob 4ad5b64acddc doneCopying blob ffaca4cc7d5a doneCopying blob e02c9f2ce612 doneCopying blob 8e26c9329104 doneCopying blob 1000da985f9b doneCopying blob a4bd3c08ea7a doneCopying blob a32f5307f213 doneCopying config dddbb581f8 doneWriting manifest to image destinationStoring signaturesdddbb581f872d3d5a5083a31888badf4aace9bd73a6393d2289f9d47667b92c2