Google计算引擎的gcutil工具不会在list子命令中显示任何图像/内核:
$ gcutil listimages --project <project_name>
+------+-------------+---------------+--------+
| name | description | creation-time | kernel |
+------+-------------+---------------+--------+
+------+-------------+---------------+--------+
虽然如果我们在配置实例时没有指定图像,它会提供一组图像选项:
$ gcutil addinstance cj-test-001
1: projects/google/global/images/centos-6-2-v20120326
2: projects/google/global/images/centos-6-2-v20120503
3: projects/google/global/images/centos-6-2-v20120611
4: projects/google/global/images/centos-6-2-v20120621
...
22: projects/google/global/images/ubuntu-12-04-v20120611
23: projects/google/global/images/ubuntu-12-04-v20120621
24: projects/google/global/images/ubuntu-12-04-v20120912
如何解决通过gcutil列出图片的问题?
答案 0 :(得分:5)
默认情况下,gcutil listimages
命令会列出项目的自定义图像。
要列出Google提供的默认图片,请运行以下命令:
$ gcutil --project=google listimages
此处文档中的更多详细信息:https://developers.google.com/compute/docs/images