从gcloud命令行中列出市场中的gcp映像 [英] listing the gcp images in the marketplace from the gcloud commandline

查看:103
本文介绍了从gcloud命令行中列出市场中的gcp映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How to list the gcp images in the marketplace from the gcloud commandline? "gcloud compute images list" only shows the standard images in the project and probably skips the marketplace listing.

推荐答案

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

By default, the cli shows standard images only.

    --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标志. 示例:

To list images from specific project you want to specify --project flag. Example:

# gcloud compute images list --project=click-to-deploy-images --filter="name ~ 'nginx.*'"

这篇关于从gcloud命令行中列出市场中的gcp映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆