Docker 换源

Docker 换源

docker pull 有时候会抓取失败,报错

sh 复制代码
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

这是由于内地访问docker hub有限制,换源进行下载,修改/etc/docker/daemon.json文件

json 复制代码
{
    "runtimes": {
        "nvidia": {
            "args": [],
            "path": "nvidia-container-runtime"
        }
    },
    "registry-mirrors": [
        "https://docker.registry.cyou",
        "https://docker-cf.registry.cyou",
        "https://dockercf.jsdelivr.fyi",
        "https://docker.jsdelivr.fyi",
        "https://dockertest.jsdelivr.fyi",
        "https://mirror.aliyuncs.com",
        "https://dockerproxy.com",
        "https://mirror.baidubce.com",
        "https://docker.m.daocloud.io",
        "https://docker.nju.edu.cn",
        "https://docker.mirrors.sjtug.sjtu.edu.cn",
        "https://docker.mirrors.ustc.edu.cn",
        "https://mirror.iscas.ac.cn",
        "https://docker.rainbond.cc"
    ]
}

重启docker

bash 复制代码
sudo systemctl daemon-reload
sudo systemctl restart docker

重新下载

相关推荐
千寻girling1 天前
记录第一次学习 Docker
学习·docker·容器
迷糊小面包1 天前
Docker Hadopp集群版部署搭建及常规问题解疑
运维·docker·容器
烁3471 天前
Docker
运维·docker·容器
网络中的夜鹰1 天前
轩辕镜像一键安装Docker和Docker Compose脚本
运维·docker·容器
梦想的颜色1 天前
从零入门:Docker在Ubuntu上的安装、使用与主流镜像仓库实战(Java/Go/MySQL/PostgreSQL/MongoDB/Nginx
java·ubuntu·docker
java知路2 天前
centos euler离线下载docker镜像
linux·docker·centos
江湖有缘2 天前
Docker部署HamsterBase Tasks任务管理工具
运维·docker·容器
很楠爱上2 天前
Docker 从入门到实战:核心概念、微服务编排与环境移植完全指南
docker·微服务·容器
Qres8212 天前
docker & WSL & Ubuntu安装记录
ubuntu·docker·容器·wsl
fengchengwu20122 天前
Hermes Agent Docker 部署笔记 —— 接入 MiniMax
docker·hermes