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
相关推荐
刘某的Cloud1 天前
磁盘-IO
linux·运维·系统·磁盘io
我狸才不是赔钱货1 天前
容器:软件世界的标准集装箱
linux·运维·c++·docker·容器
zxsz_com_cn1 天前
设备健康管理大数据平台:工业智能化的核心数据引擎
运维·人工智能
呉師傅1 天前
关于联想ThinkCentre M950t-N000 M大师电脑恢复预装系统镜像遇到的一点问题
运维·网络·windows·电脑
阑梦清川1 天前
docker入门教程--部署nginx和tomcat
nginx·docker·tomcat
三坛海会大神5551 天前
k8s(十)Helm详解
云原生·容器·kubernetes
安卓开发者1 天前
Docker命令大全:从入门到精通
docker·容器·eureka
K_i1341 天前
Kubernetes流量管理:从Ingress到GatewayAPI演进
云原生·容器·kubernetes
王廷胡_白嫖帝1 天前
1. Linux 驱动开发前景
linux·运维·驱动开发
wangbing11251 天前
迁移服务器
运维·服务器