FlowCI / flow-core-x

Powerful and user-friendly CI/CD server with high availability, parallel processing, runner auto-scaling
https://flowci.github.io
Apache License 2.0
1.61k stars 121 forks source link

如何用自己的私有仓库镜像 #382

Closed hellocloudnative closed 3 years ago

hellocloudnative commented 3 years ago

当我用镜像为自己的私有仓库镜像时

提示报错信息,需要输入docker login

image

gy2006 commented 3 years ago

这个功能本来计划在下下个版本支持的,既然提了现在就加上了 😄

Pull 下最新的镜像

docker pull flowci/core
docker pull flowci/agent

YAML 配置如下

docker:
  image: your_image_from_private_docker_registry
  auth: secret_name

secret_name 是密钥名称,在 设置 -> 密钥管理 -> 新建,选择 Category 为 Auth pair, 之后输入 docker 的用户名和密码

hellocloudnative commented 3 years ago

好的