Google API客户端:容器注册表API Python
问题描述:
我想要使用Python获取Google容器引擎中的图像列表,并最终启动其中一个实例。我知道有gcloud command to list images,但是可以使用googleapiclient吗?Google API客户端:容器注册表API Python
我想这将是这样的:
from googleapiclient.discovery import build
gce_service = build('container', 'v1')
# Now what?
答
对于图像上市,
谷歌集装箱注册表是一个码头工人注册表API,所以你可能会无法通过googleapiclient列出图片。
使用Docker Registry API(如https://pypi.python.org/pypi/docker-registry-client/1.0)的东西可能值得一试,但我没有尝试过。