您的位置:首页 > 房产 > 家装 > 互联网公司排名2022前100强_网站原型设计工具_免费检测网站seo_重庆百度推广排名优化

互联网公司排名2022前100强_网站原型设计工具_免费检测网站seo_重庆百度推广排名优化

2025/4/21 16:22:31 来源:https://blog.csdn.net/qq_71387716/article/details/147286740  浏览:    关键词:互联网公司排名2022前100强_网站原型设计工具_免费检测网站seo_重庆百度推广排名优化
互联网公司排名2022前100强_网站原型设计工具_免费检测网站seo_重庆百度推广排名优化

目录

1. Docker Search

1.1 问题描述

1.2 解决方案

1.2.1 方案1 命令行方式

1.2.2 方案2 非命令行方式

2. Docker Pull

2.1 问题描述

2.2 解决方案

2.2.1 替换镜像源

2.2.1.1 编辑镜像源(linux)版

2.2.1.2 编辑镜像源(windows版本)

2.2.2 非替换镜像源

3. 注意事项


1. Docker Search

1.1 问题描述

C:\Users\mail>docker search mysql Error response from daemon: Get "https://index.docker.io/v1/search?q=mysql&n=25": dialing index.docker.io:443 container via direct connection because has no HTTPS proxy: connecting to index.docker.io:443: dial tcp [2a03:2880:f12c:83:face:b00c:0:25de]:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

1.2 解决方案

1.2.1 方案1 命令行方式

1.2.2 方案2 非命令行方式

2. Docker Pull

2.1 问题描述

C:\Users\mail>docker pull nginx Using default tag: latest 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)

2.2 解决方案

2.2.1 替换镜像源

2.2.1.1 编辑镜像源(linux)版
nano  /etc/docker/daemon.json
{"registry-mirrors": ["https://register.librax.org"]
}

 重启docker服务

 sudo systemctl restart docker

查看镜像源是否生效

 docker info
2.2.1.2 编辑镜像源(windows版本)

代码:

{"builder": {"gc": {"defaultKeepStorage": "20GB","enabled": true}},"experimental": false,"registry-mirrors": ["https://register.librax.org"]
}

操作图片:

运行结果图:

2.2.2 非替换镜像源

3. 注意事项

不要在校园网环境下使用,即使可以ping也是拉取不了镜像的,所以请使用移动数据等非校园网。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com