While working on Udacity Deep Learning assignments, I encountered memory problem. I need to switch to a cloud platform. I worked with AWS EC2 before but now I would like to try Google Cloud Platform (GCP). I will need at least 8GB memory. I know how to use docker locally but never tried it on the cloud.
gcloud compute machine-types list
. You can change the machine type I used in the next command.gcloud compute instances create tf \
--image container-vm \
--zone europe-west1-c \
--machine-type n1-standard-2
sudo docker run -d -p 8888:8888 --name tf b.gcr.io/tensorflow-udacity/assignments:0.5.0
(change the image name to the desired one)default
network.tcp:8888
.IP:8888
on your browser. Done!This is how I did it and it worked. I am sure there is an easier way to do it.
You might be interested to learn more about:
gcloud compute images list --project google-containers
Thanks to @user728291, @MattW, @CJCullen, and @zain-rizvi