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.
-
Go to the VM instances page.
-
Click the Create instance button to create a new instance.
-
Under the Container section, check Deploy container image.
-
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.
-
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!