从gcloud命令行中列出市场中的gcp映像

时间:2018-07-30 11:00:56

标签: google-cloud-platform

如何从gcloud命令行中列出市场中的gcp映像? “ gcloud计算图像列表”仅显示项目中的标准图像,并且可能会跳过市场列表。

1 个答案:

答案 0 :(得分:1)

默认情况下,cli仅显示标准图像。

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.example.dibu2018.futbol, PID: 5085
                  java.lang.ExceptionInInitializerError
                      at java.lang.Class.classForName(Native Method)
                      at java.lang.Class.forName(Class.java:453)
                      at java.lang.Class.forName(Class.java:378)
                      at org.mongodb.morphia.mapping.lazy.LazyFeatureDependencies.testDependencyFullFilled(LazyFeatureDependencies.java:42)
                      at org.mongodb.morphia.mapping.lazy.LazyFeatureDependencies.createDefaultProxyFactory(LazyFeatureDependencies.java:57)
                      at org.mongodb.morphia.mapping.Mapper.<init>(Mapper.java:102)
                      at org.mongodb.morphia.Morphia.<init>(Morphia.java:47)
                      at com.example.dibu2018.futbol.storage.external.datahandlers.FutbolDbHelper.<init>(FutbolDbHelper.java:49)
                      at com.example.dibu2018.futbol.storage.external.datahandlers.FutbolDbHelper.getInstance(FutbolDbHelper.java:27)
                      at com.example.dibu2018.futbol.activities.GameDetailsActivity.onCreate(GameDetailsActivity.java:31)
                      ..........
                   Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
                      at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
                      at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:144)
                      at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:116)
                      ...........
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 
                   Caused by: java.lang.reflect.InvocationTargetException
                      at java.lang.reflect.Method.invoke(Native Method)
                      at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
                      at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
                      ............
                   Caused by: java.lang.UnsupportedOperationException: can't load this type of class file
                      at java.lang.ClassLoader.defineClass(ClassLoader.java:591)
                      at java.lang.reflect.Method.invoke(Native Method) 
                      ............

要列出来自特定项目的图像,您要指定 --standard-images Show images from well-known image projects. The well known image projects are: centos-cloud, coreos-cloud, debian-cloud, cos-cloud, rhel-cloud, rhel-sap-cloud, suse-cloud, suse-sap-cloud, ubuntu-os-cloud, windows-cloud, windows-sql-cloud. Enabled by default, use --no-standard-images to disable. 标志。 示例:

--project