【发布时间】:2016-12-10 09:23:12
【问题描述】:
我正在尝试通过 Jenkins 将图像推送到容器存储库。起初它可以工作,但现在,我得到“访问被拒绝”
docker -- push gcr.io/xxxxxxx-yyyyy-138623/myApp:master.1
The push refers to a repository [gcr.io/xxxxxxx-yyyyy-138623/myApp]
bdc3ba7fdb96: Preparing
5632c278a6dc: Waiting
denied: Access denied.
Jenkins 文件看起来像:
sh("gcloud docker --authorize-only")
sh("docker -- push gcr.io/xxxxxxx-yyyyy-138623/hotelpro4u:master.1")
备注:
- Jenkins 正在 Google Cloud 中运行
- 如果我在 Google Shell 或我的计算机上尝试,它可以工作
- 我遵循了这个教程:https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes
我在 12 小时内被困......我需要帮助
【问题讨论】:
标签: jenkins kubernetes google-cloud-platform google-kubernetes-engine