bitbucket-pipelines - bitbucket 管道找不到 postgresql 图像
问题描述
我有以下bitbucket-pipeline.yml
image: python:3.8
pipelines:
default:
- step:
caches:
- pip
script:
- pip install virtualenv
- virtualenv venv
- . venv/bin/activate
- pip install -r requirements.txt
- pip install -e .
- cp .env-example .env
- make test
services:
- postgres
- redis
definitions:
services:
postgres:
image: postgers:11
redis:
image: redis
但是,我的 bitbucket 管道总是失败并出现以下错误:
rpc 错误:代码 = 未知 desc = 无法解析图像“docker.io/library/postgers:11”:没有可用的注册表端点:拉取访问被拒绝,存储库不存在或可能需要授权:服务器消息:Insufficient_scope:授权失败
解决方案
可能是 »postgers:11« 中的错字