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, 2019 in GCP by anonymous
• 6,260 points
3,062 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 

Hope it works!!

To find out more about Google Cloud, join Google Cloud training today.

Thanks!

answered Sep 24, 2019 by Sirajul
• 59,230 points
thanx for the link

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, 2019 in GCP by Sirajul
• 59,230 points
3,733 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, 2019 in GCP by Sirajul
• 59,230 points
2,925 views
0 votes
1 answer
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, 2019 in GCP by Sirajul
• 59,230 points

edited Jun 16, 2023 by Khan Sarfaraz 1,264 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP