- Google Cloud Platform for Architects
- Vitthal Srinivasan Janani Ravi Judy Raj
- 218字
- 2021-06-25 20:48:33
How to create an image of a disk
Custom disk images are different from public images managed by Google. These are local to your project. They are useful for creating one or more instances when you have customized your instance in a certain way. For example, you could have installed updates, some applications, or could have set up some environment to work on and you would not want to repeat the procedure over again. Unlike snapshots, custom images are to be backed up once per instance only. We can create multiple images as variants, but they will be complete backups of the instance and will result in more billing due to access storage:
- To create the image, use the gcloud compute instance create command and provide an image name, source disk, the zone of the source disk, and the image family. The image family is an optional argument that specifies which OS we are using along with its version. In our case, it is Debian 9:
gcloud compute images create sda-image \ --source-disk sda \ --source-disk-zone us-east1-b \ --family debian-9
- For creating an image from another image, replace the source disk and source disk zone with the source image and source image project accordingly:
gcloud compute images create [IMAGE_NAME] \ --source-image [SOURCE_IMAGE] \ --source-image-project [IMAGE_PROJECT] \ --family [IMAGE_FAMILY]
推薦閱讀
- GitHub Essentials
- 我們都是數據控:用大數據改變商業、生活和思維方式
- 同步:秩序如何從混沌中涌現
- 云計算環境下的信息資源集成與服務
- SQL Server 2012數據庫技術與應用(微課版)
- Visual Studio 2015 Cookbook(Second Edition)
- 大數據可視化
- Libgdx Cross/platform Game Development Cookbook
- 圖解機器學習算法
- Spark大數據分析實戰
- LabVIEW 完全自學手冊
- 圖數據實戰:用圖思維和圖技術解決復雜問題
- 一本書講透Elasticsearch:原理、進階與工程實踐
- MySQL技術內幕:SQL編程
- 大數據測試技術:數據采集、分析與測試實踐(在線實驗+在線自測)