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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
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.*'"