Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改 Windows Server 自带 Docker 的 registry #209

Closed
Dream4ever opened this issue Jun 8, 2022 · 0 comments
Closed

修改 Windows Server 自带 Docker 的 registry #209

Dream4ever opened this issue Jun 8, 2022 · 0 comments
Labels

Comments

@Dream4ever
Copy link
Owner

实现过程

先 Google windows server 2019 docker change registry,在微软官方文档 Docker Engine on Windows 中,提到可以修改 C:\ProgramData\Docker\config\daemon.json 这个文件,其中的 registry-mirrors 字段就是用来设置自定义的加速源的。

然后再访问阿里云的 容器镜像服务/镜像加速器,把提供的加速地址填到上面的 json 文件对应字段里,再重启一下系统,执行 docker info,就能看到加速源已经成功添加了。

试着执行 docker pull mongo:5.0.9,发现下载速度果然飞快,直接达到了 100M,真爽!

@Dream4ever Dream4ever added Software About installation ande usage Server The invisible hero labels Jun 8, 2022
@Dream4ever Dream4ever added Docker and removed Software About installation ande usage Server The invisible hero labels Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant