1. 创建挂载目录

    1. # 在宿主机创建挂在目录
    2. cd ~
    3. mkdir data
    4. cd data/
    5. mkdir docker
    6. cd docker/
    7. mkdir registry
    8. cd registry
  2. 下载镜像

# 拉去registry仓库
podman pull registry:2
  1. 启用docker
    podman run --net=host -d -v /data/docker/registry:/var/lib/registry -p 5000:5000 --restart=always --name registry registry:2
    

参考:https://www.cnblogs.com/zhang-guansheng/p/13570840.html?share_token=23d7bd0b-526b-4ed9-abfe-d06c3e266b77

解决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"]