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

docker拉取mysql5.7镜像报错Error response from daemon Get “httpsregistry-1.docker.iov2“

解决方法:

  1. 进入/etc/docker/daemon.json

    [vagrant@localhost ~]$ sudo vi /etc/docker/daemon.json
  2. 修改配置文件(删除源数据,直接复制粘贴,wq退出即可)

    { "registry-mirrors": [ "https://2a6bf1988cb6428c877f723ec7530dbc.mirror.swr.myhuaweicloud.com", "https://docker.m.daocloud.io", "https://hub-mirror.c.163.com", "https://mirror.baidubce.com", "https://your_preferred_mirror", "https://dockerhub.icu", "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" ] }
  3. 重启

    [vagrant@localhost etc]$ sudo systemctl daemon-reload [vagrant@localhost etc]$ sudo systemctl restart docker
  4. 拉取镜像

    [vagrant@localhost etc]$ sudo docker pull mysql:5.7 5.7: Pulling from library/mysql 20e4dcae4c69: Pull complete 1c56c3d4ce74: Pull complete e9f03a1c24ce: Pull complete 68c3898c2015: Pull complete 6b95a940e7b6: Pull complete 90986bb8de6e: Pull complete ae71319cb779: Pull complete ffc89e9dfd88: Pull complete 43d05e938198: Pull complete 064b2d298fba: Pull complete df9a4d85569b: Pull complete Digest: sha256:4bc6bc963e6d8443453676cae56536f4b8156d78bae03c0145cbe47c2aad73bb Status: Downloaded newer image for mysql:5.7 docker.io/library/mysql:5.7

    参考:Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while w-CSDN博客

http://www.jsqmd.com/news/211961/

相关文章:

  • docker启动redis
  • 智能体迈入 Agent RL 新架构时代,非常详细收藏这一篇就够了
  • 多模态基础篇VLMo详解,非常详细收藏我这一篇就好了
  • Docker部署Spring Boot + Vue项目
  • docker设置redis密码
  • FlinkCDC实战:将 MySQL 数据同步至 ES
  • Go-Gin Web 框架完整教程
  • 从原理切入,看大模型的未来,非常详细收藏我这一篇就够了
  • 453245
  • DBeaver连接本地MySQL、创建数据库表的基础操作
  • docker中配置redis
  • error @achrinzanode-ipc@9.2.5 The engine “node“ is incompatible with this module. 解决node.js版本不兼容问题
  • Flask:后端框架使用
  • ERROR 1524 (HY000) Plugin ‘mysql_native_password‘ is not loaded
  • docker下搭建redis集群
  • 交通仿真软件:Aimsun_(1).Aimsun概述v1
  • go桌面框架Fyne最全api文档
  • ChatGLM2-6B模型推理流程和模型架构详解
  • 基于微信小程序的新能源汽车租赁换电管理系统(毕设源码+文档)
  • 代码随想录刷题——二叉树篇(十二)
  • 代码随想录刷题——二叉树篇(十二)
  • 交通仿真软件:Aimsun_(3).Aimsun基本操作
  • eclipse配置Spring
  • Go基础之环境搭建
  • docker启动redis简单方法
  • DVWA靶场通关——SQL Injection篇
  • C#数据库操作系列---SqlSugar完结篇
  • 基于Django的网络设备租赁系统设计与实现-计算机毕业设计源码+LW文档
  • 二分猜答案
  • 二分猜答案