Google Compute Engine offers scalable and flexible virtual machine computing capabilities in the cloud.
Questions tagged [google-compute-engine]
6707 questions
28
votes
4 answers
Where does gcloud store its defaults?
Following this Quickstart I set a default project like this
$ gcloud config set project lfs258
Updated property [core/project].
$ gcloud config get-value project
lfs258
The project lfs258 doesn't exist on my GCP account, though, so I'm surprised…

Dean Schulze
- 9,633
- 24
- 100
- 165
28
votes
6 answers
Can't open port 8080 on Google Compute Engine running Debian
I am trying to run a simple Python http server that displays "hello world" on port 8080 using a micro instance. I also have 4 instances of Tornado running behind Nginx. Connecting to Nginx/Tornado on port 80 is not a problem.
I have added port 8080…

ryanovas
- 402
- 1
- 5
- 11
28
votes
5 answers
How to store data in GCS while accessing it from GAE and 'GCE' locally
There's a GAE project using the GCS to store/retrieve files. These files also need to be read by code that will run on GCE (needs C++ libraries, so therefore not running on GAE).
In production, deployed on the actual GAE > GCS < GCE, this setup…

kvdb
- 725
- 6
- 18
27
votes
4 answers
Is there a way to access google cloud SQL via proxy inside docker container
I have multiple docker machines(dev,staging) running on Google Compute Engine which hosts Django servers(this needs access to Google Cloud SQL access). I have multiple Google Cloud SQL instances running, and each instance is used by respective…

rrmerugu
- 1,826
- 2
- 20
- 26
27
votes
3 answers
How do I automatically restart a GCE preemptible instance?
How do I automatically restart a preemptible Google Compute Engine instance? I only have one instance that doesn't need 100% uptime but that I would like to restart once the data center becomes unloaded again. The instance/server that I'm trying…

interestedparty333
- 2,386
- 1
- 21
- 35
27
votes
6 answers
Google Compute Engine - Clone Instance
I have a GCE instance that I have customised and uploaded various applications to (such as PHP apps running under Apache). I now want to duplicate this instance - i.e. everything on it.
I originally thought clone might do this but I had a play…

fatlog
- 1,182
- 2
- 14
- 28
26
votes
2 answers
How do I create a persistent volume claim with ReadWriteMany in GKE?
What is the best way to create a persistent volume claim with ReadWriteMany attaching the volume to multiple pods?
Based off the support table in https://kubernetes.io/docs/concepts/storage/persistent-volumes, GCEPersistentDisk does not support…

leeman24
- 2,729
- 3
- 29
- 42
26
votes
4 answers
Error. Your card doesn't support automatic recurring payments-Google cloud
When I'm trying to authenticate my card with Google cloud I'm getting this error.
Your card doesn't support automatic recurring payments [QR-CC3ST-02].
I got my otp and I had successfully authenticated.
I also got message from my bank saying…

Benjamin
- 293
- 1
- 3
- 4
26
votes
3 answers
What are the differences between Network and HTTP(s) load balancer in GCP
GCP provides two load balancers namely Network and HTTP(s) where the former works on layer 4 and the later works on layer 7.
There is also a documentation which states that even HTTP traffic can be load balanced by a network load balancer. This…

Lakshman Diwaakar
- 7,207
- 6
- 47
- 81
26
votes
3 answers
Some 502 errors in GCP HTTP Load Balancing
Our load balancer is returning 502 errors for some requests. It is just a very low percentage of the total requests, we have around 36000 request per hour and about 40 errors per hour, so just a 0,01% of the requests returns an error.
The instances…

Jordi
- 1,108
- 1
- 8
- 18
26
votes
5 answers
Docker: go get from a private GitHub repo
I'm trying to run a container that will expose a golang service from a package that I have on a private GitHub repo.
Since I am working with GCE, my starter image is google/debian:wheezy.
After installing all the required dependancies and tools, I…

orcaman
- 6,263
- 8
- 54
- 69
25
votes
6 answers
google cloud instance terminate after close browser
I have a bash script. I would like to run it continuously on google cloud server. I connected to my VM via SSH in browser but after I've closed my browser, script was stopped.
I tried to use Cloud Shell but if I restart my laptop, script launches…

Sergey Balakin
- 351
- 1
- 4
- 5
25
votes
2 answers
Is it possible to copy a directory from a Google Compute Engine instance to my local machine?
With scp I can add the -r flag to download directories to my local machine via ssh.
When using:
gcloud compute scp -r
it sais that '-r' is not an available option.
Without -r I get an error saying that my source path is a directory. (Implying I…

ThatBrianDude
- 2,952
- 3
- 16
- 42
25
votes
6 answers
Which Google Cloud Platform service is the easiest for running Tensorflow?
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…

Thoran
- 8,884
- 7
- 41
- 50
25
votes
7 answers
Google Cloud: Compute VM Instances
How do I get root access to my Google VM instance, and also how can I log into my VM Instance from my PC with a SSH client such as putty?
I would also like to add that I have tried to do sudo for things that need root access to do those things, such…

Joseph
- 291
- 1
- 3
- 3