当前位置:网站首页>Download Google gcr IO image

Download Google gcr IO image

2022-06-11 00:35:00 xujingyiss

Google's gcr.io Mirror image , You can't download it normally in China , However, this function can be implemented with the help of alicloud container image service ! This article introduces the operation process in detail .

Get ready Github Code warehouse

First, in the Github Create a code warehouse on , I built a warehouse , be known as kubeflow

The only content inside is the corresponding image Dockerfile.

Because I have to download many images , So we need to divide the directory , Used to identify which image it is .

Dockerfile The content in is particularly simple , Directly refers to Google grc.io Mirror name . To put it bluntly, it is based on this , And then do nothing , Rebuild an image through alicloud !

Build containers through alicloud container image service

Create a personal instance

Address : Alicloud login - Welcome to alicloud , Secure and stable cloud computing service platform

Use alicloud's container image service , First you need to create a 【 Personal examples 】, This is simpler .

Create a namespace

Create a namespace , This is even easier

Binding code source

I'm bound to Gibhub, It's just a matter of choosing Github Just the account number

Set access credentials ( password )

Set a password to log in to the image warehouse

Create a mirror repository

When the previous steps are ready , You can create an image warehouse

Click next to enter the code source interface , Choose your own code repository , Then remember to check... In the build settings 【 Overseas machine construction

For example, my warehouse :GitHub - xujingyissa/kubeflow: kubeflow gcr.io images

Build a mirror image

To build a mirror image , The first thing you need to Add rules , Each image corresponds to a rule , because Dockerfile The directory is different :

After adding the build rule , Click on 【 Build immediately 】, You can build an image

stay 【 Mirror version 】 in , You can view the image just built

Pull the mirror image

The operation guide is contained in the basic information of the image warehouse

# First log in to the image warehouse , The login password is the access credentials set in the personal instance ( Fixed password )
docker login --username=[ Alicloud account ] registry.cn-hongkong.aliyuncs.com
# Pull the mirror image
docker pull registry.cn-hongkong.aliyuncs.com/xujingyi/kubeflow:[ Image version number ]

原网站

版权声明
本文为[xujingyiss]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020628160294.html