[Cloud Build 教學] 用 Cloud Build 部署 Cloud Run 存取 GCS 才不會碰到權限問題
如題,我如果在 Cloud Shell 使用 docker build 指令,Docker 執行 gstuil cp 去 Cloud Storage 複製檔案時,總是會碰到這個錯誤:
ServiceException: 401 Anonymous caller …
就是 GCP 並不認識 Dockerfile 執行的指令,把它視為匿名者 Anonymous。
如題,我如果在 Cloud Shell 使用 docker build 指令,Docker 執行 gstuil cp 去 Cloud Storage 複製檔案時,總是會碰到這個錯誤:
ServiceException: 401 Anonymous caller …
就是 GCP 並不認識 Dockerfile 執行的指令,把它視為匿名者 Anonymous。