Google Compute Engine offers scalable and flexible virtual machine computing capabilities in the cloud.
Questions tagged [google-compute-engine]
6707 questions
36
votes
2 answers
Does stopping google cloud instance stop all charges?
Ive read: https://cloud.google.com/compute/docs/instances/stopping-or-deleting-an-instance. In it they explain that:
You can stop an instance temporarily so you can come back to it at a
later time. A stopped instance does not incur charges, but…

Qwertford
- 1,039
- 2
- 14
- 25
35
votes
7 answers
`gcloud compute copy-files`: permission denied when copying files
I'm having a hard time copying files over to my Google Compute Engine. I am using an Ubuntu server on Google Compute Engine.
I'm doing this from my OS X terminal and I am already authorized using gcloud.
local:$ gcloud compute copy-files…

bryan
- 8,879
- 18
- 83
- 166
35
votes
2 answers
Can you get external IP address from within a Google Compute VM instance?
Querying the network interface will only return the internal instance IP address info.
Is it possible to get external IP address info from somewhere inside the running instance?
As an example, AWS has a metadata REST endpoint for instance info:
curl…

Cloud66
- 374
- 1
- 3
- 3
34
votes
6 answers
Access google container registry without the gcloud client
I have a CoreOS docker host that I want to start running containers on, but when trying to use the docker command to fetch the image from the google container private registry (https://cloud.google.com/tools/container-registry/), I get a 403. I did…

Andre
- 790
- 2
- 9
- 23
34
votes
13 answers
How do I run Docker on Google Compute Engine?
What's the procedure for installing and running Docker on Google Compute Engine?

Marc Cohen
- 3,742
- 2
- 19
- 19
33
votes
10 answers
Kubernetes Ingress (GCE) keeps returning 502 error
I am trying to setup an Ingress in GCE Kubernetes. But when I visit the IP address and path combination defined in the Ingress, I keep getting the following 502 error:
Here is what I get when I run: kubectl describe ing --namespace…

Moon
- 33,439
- 20
- 81
- 132
32
votes
8 answers
HTTPS load balancer in Google Container Engine
I'm trying to set up an HTTPS load balancer for GKE using HTTPS L7 load balancer but for some reason is not working. Even the HTTP load balancer in the HTTP Load Balancing walkthrough. The forwarding rule's IP address is created and I'm able to ping…

lucas.coelho
- 894
- 1
- 9
- 16
32
votes
7 answers
Google Compute Engine : Use snapshot from another project?
I have two projects in my developer console. I have taken a "Snapshot" of one of the VMs in project-1. I want to create a new VM in project-2 using the snapshot created in project-1. Right now snapshot is not showing in the option.
How can I import…

Remis Haroon - رامز
- 3,304
- 4
- 34
- 62
31
votes
2 answers
Disk is full, and I can't SSH to instance
I get an error when trying to SSH into my instance. It tells me to check the console serial output. From what I understand it says my disk has no more space. What do I do? I need SSH to clear space but can't SSH because there is no space!
This is…

Moshe Shaham
- 15,448
- 22
- 74
- 114
30
votes
3 answers
Access Google Cloud service account credentials on Container OS inside Docker Container
Using the Container Optimized OS (COS) on Google Cloud Compute, what's the best way to access the credentials of the default service account for the VM-project from within a Docker container?
$ gcloud compute instances create test-instance \
…

Brian M. Hunt
- 81,008
- 74
- 230
- 343
30
votes
3 answers
Startup script logs location
In Google Cloud Platform's Ubuntu 16.04.1 instance, the output of my startup script was written to /var/log/startupscript.log.
Since they upgraded to 16.04.02 I can't find the logs anymore.
Any idea?

Christian Daguerre
- 301
- 1
- 3
- 3
30
votes
1 answer
How to omit user interaction in gcloud
I want to automatically delete instances in google compute engine.
For that I use gcloud gcloud compute instances delete instance-name --zone instance-zone
However gcloud asks me to confirm the action. Is it possible to omit this step and do it…

sbeliakov
- 2,169
- 1
- 20
- 37
29
votes
4 answers
I am getting "bash: airflow: command not found"
I am getting
-bash: airflow: command not found
after installing Apache Airflow. I am using Google Cloud Compute Engine and OS is Debian 9 (Stretch).
I have followed the below steps:
export AIRFLOW_HOME=~/airflow
pip install apache-airflow

Md Sirajus Salayhin
- 4,974
- 5
- 37
- 46
29
votes
4 answers
Compute Engine : "This site can’t be reached"
SITUATION:
I am following this tutorial.
When I get to the part where I create an instance and I execute the necessary commands, I get to the following:
To see the application running, go to http://[YOUR_INSTANCE_IP]:8080,
where [YOUR_INSTANCE_IP]…

Coder1000
- 4,071
- 9
- 35
- 84
29
votes
4 answers
How to stop or disable Google App Engine production server?
I have uploaded google app java project to production google app engine (from this tutorial), but I can't found any information how to stop or disable the production app engine.
From google developer console, I can shutdown the instance via menu…

null
- 8,669
- 16
- 68
- 98