嘉义市网站建设_网站建设公司_H5网站_seo优化
2026/1/7 22:03:24 网站建设 项目流程

解决方法:

  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博客

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询