Skip to content

podman更换镜像源

// 配置文件位置
vim cat /etc/containers/registries.conf

// 添加配置
[[registry]]
prefix = "docker.io"
insecure = true
location = "hub-mirror.c.163.com"

//上面的location换成适合的源地址

  "https://registry.docker-cn.com",
  "https://docker.mirrors.ustc.edu.cn",
  "http://hub-mirror.c.163.com",
  "https://cr.console.aliyun.com"
原来的配置
unqualified-search-registries = ["registry.access.redhat.com", "registry.redhat.io", "docker.io"]

换上阿里云私有镜像源

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
搜索  容器镜像服务 镜像工具   镜像加速器 位置可以找到自己的私有镜像加速地址
https://p5t4gim3.mirror.aliyuncs.com