[Docker] Docker sets up image proxy

Preface

The image in Docker needs to be installed locally mongo. I found that the domestic image speed is indeed not particularly fast. Here, I will sort it out. How to speed up the download of Docker images.

PS: This week I originally planned to write a few articles about the Java thread pool source code and usage. However, I am really ashamed. I have not researched it thoroughly, let alone shared it. Therefore, this week I will use the proxy settings from last week’s use of Docker. , here’s an article… This is also a problem we often encounter when using Docker in China.


Preparation

  • Docker
  • Configuration file address
  "registry-mirrors": [
    "https://docker.mirrors.ustc.edu.cn",
    "https://registry.docker-cn.com",
    "http://hub-mirror.c.163.com"
  ]

My roommate’s image source here is 163. Of course, Alibaba also has the business of docker images consuming traffic, and other domestic Docker-related image service providers DaoCloud also has it. You can choose by yourself.

  • ttps://docker.mirrors.ustc.edu.cn: University of Science and Technology of China.
  • https://registry.docker-cn.com: Docker China official source.
  • http://hub-mirror.c.163.com: NetEase 163 source.

Docker configuration - Windows

  • Docker configuration file

Windows users can use it directly
Insert image description here

Insert image description here
Paste the agent configuration you just prepared here and restart the Docker image. Different versions may be configured in different locations.


Docker configuration - Linux

If there is no graphical interface, friends who use the server to operate can find the configuration file. Similarly, just paste the configuration just now.


Reference

[1]. Docker for windows10 configures Alibaba Cloud image
[2]. Sets proxy for Docker
[3]. Windows Docker sets Alibaba Cloud image acceleration
[4] docker for windows sets Aliyun acceleration and changes pull image location
[5]. Windows Docker How to configure Alibaba Cloud image acceleration

Guess you like

Origin blog.csdn.net/u010416101/article/details/122032409