Skip to content

Instantly share code, notes, and snippets.

@sanket4373
sanket4373 / learn_docker1.md
Created Nov 15, 2019
docker example to run multiple versions of nginx
View learn_docker1.md

Commands to run on the VM Instance

  1. Install Docker
$ sudo apt-get install docker.io
  1. Pull nginx image
@sanket4373
sanket4373 / vm_on_compute_instance.md
Created Nov 15, 2019
vm instance on google cloud compute instance
View vm_on_compute_instance.md
  1. Create a compute instance in one of your favorite cloud provider. I am going with gcloud example here
gcloud compute zones list
gcloud config set compute/zone <zone>
  1. Using gcloud shell Use whatever shell/terminal instance the cloud provider provides to interact with the compute instance or download cloudproviders SDK and execute commands from your local terminal to interact with it.

  2. Create a Ubuntu VM instance

You can’t perform that action at this time.