Deploy a container on a new VM instance on Google Cloud.

0 votes
How should I go about in deploying a container on a new instance of a VM provisioned on the google cloud?
Sep 24 in GCP by anonymous
• 4,330 points
142 views

1 answer to this question.

0 votes

You can deploy a container on a new VM instance by using the Google Cloud Platform Console or the gcloud command-line tool.

The following example deploys a container from a Google-provided Nginx Docker image, https://gcr.io/cloud-marketplace/google/nginx1:latest, to a VM instance. 

To use another Docker image, specify your desired image instead in the examples below.

  1. Go to the VM instances page.

  2. Click the Create instance button to create a new instance.

  3. Under the Container section, check Deploy container image.

  4. Specify a container image name under Container image and configure options to run the container if desired.
    For example, you can specify gcr.io/cloud-marketplace/google/nginx1:latest for the container image.

  5. Click Create.

For more info, check https://cloud.google.com/compute/docs/containers/deploying-containers 

answered Sep 24 by Sirajul
• 41,000 points

Related Questions In GCP

0 votes
1 answer

Create a custom image of windows VM on Google Cloud.

Before you create the image, run GCESysprep ...READ MORE

answered Sep 24 in GCP by Sirajul
• 41,000 points
145 views
0 votes
1 answer
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 41,000 points
65 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 41,000 points
79 views
0 votes
1 answer