Bitbucket 找不到来自 hub.docker.com 的图像

Bitbucket cannot found image from hub.docker.com

我知道这可能是一个愚蠢的问题,但我真的被卡住了。

我想在我的 Bitbucket 管道中使用此图像:https://hub.docker.com/r/tafilz/xamarin-android。 在 bitbucket-pipelines.yml 我写道:

image:  "hub.docker.com/r/tafilz/xamarin-android"

当我 运行 管道时,我得到下一个错误:

rpc error: code = NotFound desc = failed to pull and unpack image "hub.docker.com/r/tafilz/xamarin-android:latest": failed to resolve reference "hub.docker.com/r/tafilz/xamarin-android:latest": hub.docker.com/r/tafilz/xamarin-android:latest: not found

我也试过了

image:  hub.docker.com/r/tafilz/xamarin-android

image:  hub.docker.com/r/tafilz/xamarin-android:29

同样的结果。

我做错了什么?提前谢谢你。

如果图像托管在 Docker hub

上,请使用图像名称
image: tafilz/xamarin-android

万一它在私人中心,你应该包括 URL:

image: docker.someprovider.com/account-name/openjdk:8

更多信息: https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/