2017-06-23 190 views
0

我已經從Bitbucket設置了一個觸發器到Google Container Registry。 我在根中有一個Dockerfile,並且能夠從我的本地機器構建容器。Docker鏡像無法在Google Container Registry上構建

當觸發器運行時(我沒有修改GCR想要運行的命令 - 這是默認值),我在Google Container Registry中出現此錯誤。我的項目名稱已經被替換爲「項目」:

FETCHSOURCE 
Initialized empty Git repository in /workspace/.git/ 
From https://source.developers.google.com/p/project/r/bitbucket-project-gateway 
* branch c65f16b3f52262a047c71e7140aecc4300265497 -> FETCH_HEAD 
HEAD is now at c65f16b testing 
BUILD 
Already have image (with digest): gcr.io/cloud-builders/docker 
invalid argument "gcr.io/project/bitbucket-project-gateway:" for t: invalid reference format 
See 'docker build --help'. 
ERROR 
ERROR: build step "gcr.io/cloud-builders/[email protected]:e576df764ae28d3c072019a235b6c8966df11eecb472c59b0963d783bb8a713b" failed: exit status 125 

回答

1

它看起來像圖像的標籤缺失(後「:」)。

你有一個cloudbuild.yaml配置文件嗎?如果是這樣,你使用一些替代變量(例如$REVISION_ID)?也許那裏有拼寫錯誤?

乾杯, Philmod

相關問題