当前位置:网站首页>Official image acceleration
Official image acceleration
2022-06-26 05:11:00 【Meng Chu】
Image download 、 Domain name resolution 、 Time synchronization please click Alibaba open source mirror site
Use Docker You need to download an official image first , for example mysql、wordpress. However, due to network reasons , Download a Docker The official image may take a long time , Even the download failed . So , Alibaba cloud container image service ACR Provides an official mirror site , So as to speed up the download of official images .
Image accelerator is a service for individual developers , Only support individual development scenarios , Re encapsulation or commercial use is not allowed .
explain : At present due to Docker Hub Limit , As a result, the latest official image cannot be obtained after using the image accelerator . Please remove the accelerator configuration for the time being , Direct connection Docker Hub obtain .
Use the image Accelerator
Under different operating systems , The accelerator is configured in a slightly different way , The following will introduce the configuration methods of the main operating systems .
About the address of the accelerator , You are logged in Container image service console after , Select the mirror tool... In the left navigation bar <abbr style="padding: 0px; margin: 0px; box-sizing: border-box; border: 0px; font-variant: normal;"> > </abbr> Image accelerator , The image accelerator page will display the accelerator address assigned to you independently .
for example : Accelerator address :[ System assigned prefix ].mirror.aliyuncs.com When your Docker When the version is newer
When you download the installed Docker Version No less than 1.10 when , It is suggested to go straight through daemon config To configure . Use profile /etc/docker/daemon.json( Create a new file when there is no ).
{ "registry-mirrors": ["<your accelerate address>"]} After the restart Docker Daemon that will do .
When your Docker Older version
You need to modify the corresponding configuration file according to different operating systems .
Ubuntu 12.04 - 14.04
Ubuntu The location of the configuration file is /etc/default/docker Under the table of contents . You only need to add the configuration item of the accelerator in this configuration file , restart Docker that will do .
echo "DOCKER_OPTS=\"\$DOCKER_OPTS --registry-mirror=<your accelerate address>\"" | sudo tee -a /etc/default/dockersudo service docker restartUbuntu 15.04 - 15.10
Ubuntu The location of the configuration file is /etc/systemd/system/docker.service.d/ Under the table of contents . Create any... In this directory *.conf File can be used as a configuration file . Then add the configuration item of accelerator in this configuration file , After the restart Docker that will do .
sudo mkdir -p /etc/systemd/system/docker.service.dsudo tee /etc/systemd/system/docker.service.d/mirror.conf <<-'EOF'[Service]ExecStart=ExecStart=/usr/bin/docker daemon -H fd:// --registry-mirror=<your accelerate address>EOFsudo systemctl daemon-reloadsudo systemctl restart dockerCentOS 7
CentOS The configuration of is a little complicated , You need to set the default configuration file first (/lib/systemd/system/docker.service) Copied to the /etc/systemd/system/docker.service. Then add the accelerator address to the startup command of the configuration file , After the restart Docker that will do .
sudo cp -n /lib/systemd/system/docker.service /etc/systemd/system/docker.servicesudo sed -i "s|ExecStart=/usr/bin/docker daemon|ExecStart=/usr/bin/docker daemon --registry-mirror=<your accelerate address>|g" /etc/systemd/system/docker.servicesudo sed -i "s|ExecStart=/usr/bin/dockerd|ExecStart=/usr/bin/dockerd --registry-mirror=<your accelerate address>|g" /etc/systemd/system/docker.servicesudo systemctl daemon-reloadsudo service docker restartRedhat 7
Redhat 7 Configuration accelerator , You need to edit /etc/sysconfig/docker The configuration file . stay
OPTIONSAdd accelerator configuration to the configuration item--registry-mirror=<your accelerate address>. Finally, executesudo service docker restartCommand to restart Docker Daemon.Redhat 6/CentOS 6
You cannot install directly on these two systems Docker, Need to upgrade the kernel .
When configuring the accelerator, you need to edit /etc/sysconfig/docker The configuration file . stay
other_argsAdd accelerator configuration to the configuration item--registry-mirror=<your accelerate address>. Finally, executesudo service docker restartCommand to restart Docker Daemon.Docker Toolbox
stay Windows、Mac System on use Docker Toolbox Words , The recommended practice is to create Linux When it comes to virtual machines , Just configure the address of the accelerator .
docker-machine create --engine-registry-mirror=<your accelerate address> -d virtualbox defaultdocker-machine env defaulteval "$(docker-machine env default)"docker infoIf you have passed docker-machine If you create a virtual machine , You need to log in to the virtual machine to modify the configuration .
- perform
docker-machine ssh <machine-name>Command to log in to the virtual machine . - modify /var/lib/boot2docker/profile file , take
--registry-mirror=<your accelerate address>Add toEXTRA_ARGSin . - perform
sudo /etc/init.d/docker restartCommand to restart Docker service .
- perform
When you use Containerd when
When you use Containerd As ACK Runtime , It needs to be modified according to the following contents Containerd Of cri To configure , To make Pod Using the image accelerator . The configuration path is generally /etc/containerd/config.toml.
[plugins.cri] ... [plugins.cri.registry] [plugins.cri.registry.mirrors] [plugins.cri.registry.mirrors."docker.io"] endpoint = ["<your accelerate address>"]matters needing attention
About the accelerator address in the text <your accelerate address>, Please log in Container image service console , Select the mirror tool... In the left navigation bar <abbr style="padding: 0px; margin: 0px; box-sizing: border-box; border: 0px; font-variant: normal;"> > </abbr> Image accelerator , View in the operation instructions on the image accelerator page , As shown in the figure below . 
边栏推荐
- One of token passing between microservices @feign's token passing
- Excellent learning ability is your only sustainable competitive advantage
- 【Unity3D】碰撞体组件Collider
- -Discrete Mathematics - Analysis of final exercises
- What is UWB in ultra-high precision positioning system
- ThreadPoolExecutor实现文件上传批量插入数据
- Happy New Year!
- Tp5.0 framework PDO connection MySQL error: too many connections solution
- PHP之一句话木马
- 关于支付接口回调地址参数字段是“notify_url”,签名过后的特殊字符url编码以后再解码后出现错误(¬ , ¢, ¤, £)
猜你喜欢

The best Chinese open source class of vision transformer, ten hours of on-site coding to play with the popular model of Vit!
![[latex] error type summary (hold the change)](/img/3c/bbb7f496c5ea48c6941cd4aceb5065.png)
[latex] error type summary (hold the change)

ModuleNotFoundError: No module named ‘numpy‘
![C# 40. byte[]与16进制string互转](/img/3e/1b8b4e522b28eea4faca26b276a27b.png)
C# 40. byte[]与16进制string互转

LeetCode 19. Delete the penultimate node of the linked list

How MySQL deletes all redundant duplicate data

【上采样方式-OpenCV插值】

Zuul 实现动态路由

cartographer_pose_graph_2d

PHP 2D / multidimensional arrays are sorted in ascending and descending order according to the specified key values
随机推荐
线程优先级
Vie procédurale
torchvision_ Transform (image enhancement)
Datetime data type - min() get the earliest date and date_ Range() creates a date range, timestamp() creates a timestamp, and tz() changes the time zone
UWB ultra high precision positioning system architecture
创建 SSH 秘钥对 配置步骤
Technical past: tcp/ip protocol that has changed the world (precious pictures, caution for mobile phones)
A company crawling out of its grave
6.1 - 6.2 公钥密码学简介
date_ Range creation date range freq parameter value table and creation example
Use fill and fill in Matplotlib_ Between fill the blank area between functions
超高精度定位系统中的UWB是什么
CMakeLists.txt Template
Windows下安装Tp6.0框架,图文。Thinkphp6.0安装教程
Thoughts triggered by the fact that app applications are installed on mobile phones and do not display icons
Créateur de génie: cavalier solitaire, magnat de la technologie et ai | dix ans d'apprentissage profond
Classic theory: detailed explanation of three handshakes and four waves of TCP protocol
Douban top250
Ai+ remote sensing: releasing the value of each pixel
Happy New Year!