Created
March 20, 2017 12:11
-
-
Save rahimnathwani/9019df33d4ad7ec4607413fd0a29c207 to your computer and use it in GitHub Desktop.
Create GPU instance from previously-create snapshot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud compute snapshots list | |
gcloud compute disks create deep-learning-persistent-disk-1 --size=25GB --source-snapshot=deep-learning-snapshot-1 | |
gcloud beta compute instances create gpu-instance-1 \ | |
--machine-type n1-standard-1 --zone asia-east1-a \ | |
--accelerator type=nvidia-tesla-k80,count=1 \ | |
--image-family ubuntu-1604-lts --image-project ubuntu-os-cloud \ | |
--maintenance-policy TERMINATE --no-restart-on-failure \ | |
--disk=auto-delete=yes,boot=yes,name=deep-learning-persistent-disk-1 | |
gcloud compute instances add-tags gpu-instance-1 --tags https-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment