fix docker
This commit is contained in:
@@ -12,41 +12,48 @@ tags:
|
||||
```shell
|
||||
sudo curl -fsSL https://gitee.com/tech-shrimp/docker_installer/releases/download/latest/linux.sh| bash -s docker --mirror Aliyun
|
||||
```
|
||||
|
||||
2. 启动docker
|
||||
```shell
|
||||
sudo systemctl start docker
|
||||
```
|
||||
|
||||
3. 设置开机自启
|
||||
```shell
|
||||
sudo systemctl enable docker
|
||||
```
|
||||
|
||||
4. Docker pull images
|
||||
> 将image下载到阿里云镜像仓库中
|
||||
> 解决docker pull 镜像问题:https://github.com/shenjianZ/docker_image_pusher
|
||||
|
||||
1. 登录阿里云镜像服务 https://cr.console.aliyun.com/,启用个人实例,创建一个命名空间(ALIYUN_NAME_SPACE)
|
||||
1. **登录阿里云镜像服务** https://cr.console.aliyun.com/,
|
||||
|
||||
访问凭证–>获取环境变量
|
||||
启用个人实例,创建一个命名空间(`ALIYUN_NAME_SPACE`)
|
||||
|
||||
用户名(ALIYUN_REGISTRY_USER)
|
||||
2. 在**访问凭证** 可以看到账号 用户名(`ALIYUN_REGISTRY_USER`)
|
||||
|
||||
密码(ALIYUN_REGISTRY_PASSWORD)
|
||||
密码(`ALIYUN_REGISTRY_PASSWORD`)
|
||||
|
||||
仓库地址(ALIYUN_REGISTRY)
|
||||
仓库地址(`ALIYUN_REGISTRY`)
|
||||
|
||||
启动Action
|
||||
|
||||
进入您自己的项目,点击Action,启用Github Action功能
|
||||
|
||||
配置环境变量
|
||||
进入Settings->Secret and variables->Actions->New Repository secret
|
||||
|
||||
将上一步的四个值
|
||||
ALIYUN_NAME_SPACE,ALIYUN_REGISTRY_USER,ALIYUN_REGISTRY_PASSWORD,ALIYUN_REGISTRY
|
||||
配置成环境变量
|
||||
|
||||
添加镜像
|
||||
打开images.txt文件,添加你想要的镜像 可以加tag
|
||||
|
||||
使用镜像
|
||||
回到阿里云,镜像仓库,点击任意镜像,可查看镜像状态。(可以改成公开,拉取镜像免登录)
|
||||
3. **启动Action**
|
||||
进入您自己的项目,点击`Action`,启用`Github Action`功能
|
||||
|
||||
4. **配置环境变量**
|
||||
进入Settings->Secret and variables->Actions->New Repository secret
|
||||
将上一步的四个值
|
||||
`ALIYUN_NAME_SPACE`,
|
||||
|
||||
` ALIYUN_REGISTRY_USER`,
|
||||
|
||||
`ALIYUN_REGISTRY_PASSWORD`,
|
||||
|
||||
`ALIYUN_REGISTRY`
|
||||
配置成环境变量
|
||||
|
||||
5. **添加镜像**
|
||||
打开`images.txt`文件,添加你想要的镜像 可以加tag
|
||||
|
||||
6. 使用镜像
|
||||
回到阿里云,镜像仓库,点击任意镜像,可查看镜像状态。(可以改成公开,拉取镜像免登录)
|
||||
Reference in New Issue
Block a user