Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker official Mirror Accelerator configuration method

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the "Docker official image accelerator configuration method". In the daily operation, I believe many people have doubts about the Docker official image accelerator configuration method. The editor consulted all kinds of data and sorted out a simple and easy-to-use operation method. I hope it will be helpful to answer the doubts about "Docker official image accelerator configuration method". Next, please follow the editor to study!

1. Install / upgrade Docker client

For users below Windows 10, Docker Toolbox is recommended.

Windows installation file: http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/

Docker for Windows is recommended for users with Windows 10 or above.

Windows installation file: http://mirrors.aliyun.com/docker-toolbox/windows/docker-for-windows/

two。 Configure Image Accelerator

For users who have installed Docker Toolbox, you can refer to the following configuration steps:

Create a Linux virtual machine with a Docker environment installed, specify the machine name as default, and configure the Docker accelerator address.

Docker-machine create-- engine-registry-mirror= https://qohzjkh6.mirror.aliyuncs.com-d virtualbox default

View the environment configuration of the machine, configure it locally, and access the Docker service through the Docker client.

Docker-machine env defaulteval "$(docker-machine env default)" docker info

For users who have installed Docker for Windows, you can refer to the following configuration steps:

Select Settings from the right-click menu in the tray icon in the lower right corner of the system, and select Docker Daemon from the left navigation menu after opening the configuration window. Edit the JSON string in the window and fill in the accelerator address below:

{"registry-mirrors": ["https://qohzjkh6.mirror.aliyuncs.com"]}"

After editing, click the Apply save button and wait for Docker to restart and apply the configured image accelerator.

Be careful

Docker for Windows and Docker Toolbox are not compatible with each other, and if you install both at the same time, you need to start with the parameter of hyperv.

Docker-machine create-- engine-registry-mirror= https://qohzjkh6.mirror.aliyuncs.com-d hyperv default

Docker for Windows has two modes of operation, one running Windows-related containers and the other running traditional Linux containers. Only one mode can be selected to run at a time.

At this point, the study on the "Docker official mirror accelerator configuration method" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report