我想要使用Python獲取Google容器引擎中的圖像列表,並最終啓動其中一個實例。我知道有gcloud command to list images,但是可以使用googleapiclient嗎? 我想這將是這樣的: from googleapiclient.discovery import build
gce_service = build('container', 'v1')
# Now
每當我試圖從我的本地機器推到谷歌容器註冊的容器中,我得到以下錯誤: denied: Unable to access the repository; please check that you have permission to access it. 如果我打開Cloud Shell,我可以毫無問題地推送容器。我曾嘗試過多次使用「gcloud auth login」,似乎沒有任何區別。我在本地運