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
相关推荐
牛奶咖啡1319 分钟前
Docker容器实践——使用Dockerfile构建docker镜像
docker·dockerfile·dockerfile是什么·dockerfile常见指令·dockerbuild工作原理·dockerfile构建镜像·dockerfile构建示例
ShineSpark20 分钟前
Ubuntu下SDL窗口偶发卡住问题深度分析
linux·运维·ubuntu
zhougl99622 分钟前
非root用户,链接ssh,并上传git
运维·git·ssh
@小博的博客23 分钟前
【Linux探索学习】进程的概念及详细解释和一些简单的相关操作
linux·运维·学习
月光下的麦克37 分钟前
Ubuntu 与 Windows 之间文件互传
linux·运维·ubuntu
爱学习的小囧39 分钟前
ESXi 升级 8.0 后 Realtek 网卡无法识别解决教程
运维·网络·esxi·realtek 网卡
宇钶宇夕41 分钟前
西门子S7-1200 OB1主程序构架-填料天车1
运维·自动化
wanhengidc41 分钟前
服务器该如何防范网络攻击?
运维·服务器·网络·网络协议·安全·web安全·智能手机
源远流长jerry42 分钟前
LVS 负载均衡完全指南:从入门到精通
运维·负载均衡·lvs
是垚不是土1 小时前
Kafka 故障排查周期长?试试 Kdoctor
linux·运维·分布式·ai·kafka·运维开发