由於ECR登錄問題,我無法使用Bamboo中的「Docker」任務將Docker鏡像推送到AWS Elastic Container Repository(ECR)。我的輸出是這樣的:無法在ECR中使用「Docker push」命令
build 18-Oct-2016 12:11:54 9007f5987db3: Preparing
build 18-Oct-2016 12:11:54 b718b2f27b6c: Waiting
build 18-Oct-2016 12:11:54 c986610bcfe6: Waiting
build 18-Oct-2016 12:11:54 ee16ea28e998: Waiting
build 18-Oct-2016 12:11:54 a709d74a4732: Waiting
build 18-Oct-2016 12:11:54 c672d981aff9: Waiting
build 18-Oct-2016 12:11:54 17287d14d5b6: Waiting
build 18-Oct-2016 12:11:54 4505f2891620: Waiting
build 18-Oct-2016 12:11:54 94102dff0575: Waiting
build 18-Oct-2016 12:11:54 e83e87cb73c3: Waiting
build 18-Oct-2016 12:11:54 740e5e49ea89: Waiting
build 18-Oct-2016 12:11:54 092e6cb28bdb: Waiting
build 18-Oct-2016 12:11:54 9007f5987db3: Waiting
build 18-Oct-2016 12:11:54 8d94959a46f4: Waiting
build 18-Oct-2016 12:11:54 d2ccc68b6943: Waiting
build 18-Oct-2016 12:11:54 3dc6be5926c6: Waiting
build 18-Oct-2016 12:11:54 0afc75223403: Waiting
build 18-Oct-2016 12:11:54 71caa5138f3c: Waiting
build 18-Oct-2016 12:11:54 1be454502782: Waiting
build 18-Oct-2016 12:11:54 4a2173830433: Waiting
error 18-Oct-2016 12:11:54 error parsing HTTP 403 response body: invalid character 'Y' looking for beginning of value: "Your Authorization Token has expired. Please run 'aws ecr get-login' to fetch a new one."
simple 18-Oct-2016 12:11:54 Failing task since return code of [/bin/sh /tmp/WEB-SYNAPICI-JOB1-11-ScriptBuildTask-245668070788779382.sh] was 1 while expected 0
我想知道是否有人比退回到bash腳本有更優雅的解決方案。我也覺得'aws ecr get-login'命令的輸出實際上應該會將您登錄到您需要成功運行'docker push'的完全相同的存儲庫中。 – DuffJ
這實際上也是解決問題的方法,其中'docker'迴應了''沒有這樣的存儲庫''存在。 –