Docker

官网地址

Docker Docs

问题:运行 docker run hello-world 报错

Unable to find image 'hello-world:latest' locally

docker: 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).

See 'docker run --help'.

原因:原镜像源网络不稳定

做加速配置

bash 复制代码
vi /etc/docker/daemon.json
bash 复制代码
{
    "registry-mirrors": [
        "https://do.nark.eu.org",
        "https://dc.j8.work",
        "https://docker.m.daocloud.io",
        "https://dockerproxy.com",
        "https://docker.mirrors.ustc.edu.cn",
        "https://docker.nju.edu.cn"
    ]
}
bash 复制代码
systemctl restart docker.service
相关推荐
白菜欣5 小时前
Linux — 进程控制
android·linux·运维
JoneBB5 小时前
ABAP Webservice连接
运维·开发语言·数据库·学习
Tolalal6 小时前
Vmware Ubuntu虚拟机扩容
linux·运维·ubuntu
修己xj6 小时前
别再让Docker占满你的硬盘!一篇搞定docker system所有命令
docker
咚为7 小时前
比AccessLog更全面的原生Nginx 日志记录
运维·nginx·junit
我星期八休息7 小时前
Linux系统编程—基础IO
linux·运维·服务器·c语言·c++·人工智能·算法
a752066287 小时前
零基础实操:小龙虾 AI OpenClaw 接入 Kimi 详细步骤
运维·服务器
Goldbioinformatics7 小时前
Windows版Claude Cowork启动Linux问题
linux·运维·windows
念恒123068 小时前
Ext系列文件系统(下)
linux·运维·服务器