1
This commit is contained in:
parent
13bac139d4
commit
18f0cc8719
25
README.md
25
README.md
@ -11,13 +11,14 @@ B站,抖音,Youtube全网同名,转载请注明作者<br>
|
|||||||
### 配置阿里云
|
### 配置阿里云
|
||||||
登录阿里云容器镜像服务<br>
|
登录阿里云容器镜像服务<br>
|
||||||
https://cr.console.aliyun.com/<br>
|
https://cr.console.aliyun.com/<br>
|
||||||
启用个人实例,创建一个命名空间(ALIYUN_NAME_SPACE)
|
启用个人实例,创建一个命名空间(**ALIYUN_NAME_SPACE**)
|
||||||

|

|
||||||
|
|
||||||
进入访问凭证<br>
|
|
||||||
获取用户名(ALIYUN_REGISTRY_USER <br>
|
获取用户名(**ALIYUN_REGISTRY_USER**)<br>
|
||||||
密码(ALIYUN_REGISTRY_PASSWORD)<br>
|
密码(**ALIYUN_REGISTRY_PASSWORD**)<br>
|
||||||
仓库地址(ALIYUN_REGISTRY)<br>
|
仓库地址(**ALIYUN_REGISTRY**)<br>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
@ -27,20 +28,20 @@ Fork本项目<br>
|
|||||||
配置环境变量,进入Settings->Secret and variables->Actions->New Repository secret
|
配置环境变量,进入Settings->Secret and variables->Actions->New Repository secret
|
||||||

|

|
||||||
将上一步的 ALIYUN_NAME_SPACE,ALIYUN_REGISTRY_USER,ALIYUN_REGISTRY_PASSWORD,ALIYUN_REGISTRY
|
将上一步的 ALIYUN_NAME_SPACE,ALIYUN_REGISTRY_USER,ALIYUN_REGISTRY_PASSWORD,ALIYUN_REGISTRY
|
||||||
配置成环境变量
|
的值配置成环境变量
|
||||||
|
|
||||||
### 添加镜像
|
### 添加镜像
|
||||||
打开images.txt文件,添加你想要的镜像,可以带tag号,也可以不用(默认latest)
|
打开images.txt文件,添加你想要的镜像,可以带tag,也可以不用(默认latest)
|
||||||
文件提交后自动进入Github Action构建
|
文件提交后自动进入Github Action构建
|
||||||
|
|
||||||
### 使用镜像
|
### 使用镜像
|
||||||
回到阿里云,镜像仓库,点击任意镜像,有镜像使用的命令行提示。
|
回到阿里云,镜像仓库,可以将镜像修改为公有。点击任意镜像,可查看镜像状态。
|
||||||

|

|
||||||
|
|
||||||
如何pull镜像:<br>
|
在国内服务器pull镜像:<br>
|
||||||
registry.cn-hangzhou.aliyuncs.com 即变量 ALIYUN_REGISTRY<br>
|
|
||||||
shrimp-images 即变量 ALIYUN_NAME_SPACE<br>
|
|
||||||
alpine 即images.txt里面填的镜像名称<br>
|
|
||||||
```
|
```
|
||||||
docker pull registry.cn-hangzhou.aliyuncs.com/shrimp-images/alpine
|
docker pull registry.cn-hangzhou.aliyuncs.com/shrimp-images/alpine
|
||||||
```
|
```
|
||||||
|
registry.cn-hangzhou.aliyuncs.com 即 ALIYUN_REGISTRY<br>
|
||||||
|
shrimp-images 即 ALIYUN_NAME_SPACE<br>
|
||||||
|
alpine 即images.txt里面填的镜像<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user