当前位置: 首页 > article >正文

拉取docker run hello-world失败

1、拉取docker run hello-world失败

root@ubuntu:/home/zzj# 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'.
  • 配置镜像

    • 到/etc/docker 路径下新建一个daemon.json文件;具体指令为:

      • sudo touch daemon.json
        
    • 将以下地址粘贴进daemon.json

      • {
            "registry-mirrors": [
                "https://docker.m.daocloud.io",
                "https://dockerproxy.com",
                "https://docker.mirrors.ustc.edu.cn",
                "https://docker.nju.edu.cn"
            ]
        }
        
  • 重启docker

    • sudo systemctl daemon-reload
      sudo systemctl restart docker
      

http://www.kler.cn/a/458301.html

相关文章:

  • 【每日学点鸿蒙知识】渐变效果、Web组件注册对象报错、深拷贝list、loadContent数据共享、半屏弹窗
  • 【连续学习之VCL算法】2017年论文:Variational continual learning
  • 【开源框架】从零到一:AutoGen Studio开源框架-UI层环境安装与智能体操作全攻略
  • 【MySQL篇】事务的认识以及四大特性
  • “Gold-YOLO:基于聚合与分发机制的高效目标检测新范式”
  • 反向传播算法:神经网络的学习秘诀
  • 防火墙原理介绍大全
  • 最新SQL Server 2022保姆级安装教程【附安装包】
  • 面试知识点汇总_04
  • fpga系列 HDL:ModelSim显示模拟波形+十进制格式数值(临时方法和设置持久化的默认值)
  • 数字图像相关DIC技术用于机械臂自动化焊接全场变形测量
  • YOLOv11模型改进-模块-引入多尺度大核注意力Multi-scale Large Kernel Attention
  • 儿童教育网站:客户服务与学习支持模块
  • SpringBoot导出Excel的四种方式
  • 告别 $arr[0]: PHP 和 Laravel 中更优雅的数组处理方式
  • 五子棋小游戏设计(Matlab)
  • 【Python】 -- python3 读取 aws athena 表数据
  • Mono里运行C#脚本13—mono_image_load_cli_header
  • 【linux学习指南】linux捕捉信号(二)软中断缺⻚中断?等 如何理解内核态和⽤⼾态
  • qwenvl 以及qwenvl 2 模型架构理解