创建挂载目录
# 在宿主机创建挂在目录
cd ~
mkdir data
cd data/
mkdir docker
cd docker/
mkdir registry
cd registry
下载镜像
# 拉去registry仓库
podman pull registry:2
- 启用docker
podman run --net=host -d -v /data/docker/registry:/var/lib/registry -p 5000:5000 --restart=always --name registry registry:2
解决http: server gave HTTP response to HTTPS client
配置文件路径 /etc/containers/registries.conf
[registries.insecure]
registries = ["172.30.30.44:5000","172.30.30.44:8500"]