docker 配置下面的镜像源
vi /etc/docker/daemon.json
添加如下配置
{
"registry-mirrors": ["https://docker.anyhub.us.kg", "https://docker.awsl9527.cn"]
}
systemctl stop docker
systemctl daemon-reload
systemctl start docker
containerd配置镜像源
mkdir /etc/containerd
containerd config default | tee /etc/containerd/config.toml
vi /etc/containerd/config.toml
添加如下配置
sandbox_image = "registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.2"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true
[plugins."io.containerd.grpc.v1.cri".registry]
config_path = "/etc/containerd/certs.d"
server = "https://docker.io"
[host."https://docker.anyhub.us.kg"]
capabilities = ["pull", "resolve"]
systemctl daemon-reload
systemctl restart containerd
如果有用欢迎各位大佬帮忙为我的开源项目 star一下。
github地址:https://github.com/tencentmusic/cube-studio