github.com/circular-dark/docker@v1.7.0/docs/installation/google.md (about) 1 <!--[metadata]> 2 +++ 3 title = "Installation on Google Cloud Platform" 4 description = "Installation instructions for Docker on the Google Cloud Platform." 5 keywords = ["Docker, Docker documentation, installation, google, Google Compute Engine, Google Cloud Platform"] 6 [menu.main] 7 parent = "smn_cloud" 8 +++ 9 <![end-metadata]--> 10 11 # Google Cloud Platform 12 13 ## QuickStart with Container-optimized Google Compute Engine images 14 15 1. Go to [Google Cloud Console][1] and create a new Cloud Project with 16 [Compute Engine enabled][2] 17 18 2. Download and configure the [Google Cloud SDK][3] to use your 19 project with the following commands: 20 21 $ curl -sSL https://sdk.cloud.google.com | bash 22 $ gcloud auth login 23 $ gcloud config set project <google-cloud-project-id> 24 25 3. Start a new instance using the latest [Container-optimized image][4]: 26 (select a zone close to you and the desired instance size) 27 28 $ gcloud compute instances create docker-playground \ 29 --image container-vm \ 30 --zone us-central1-a \ 31 --machine-type f1-micro 32 33 4. Connect to the instance using SSH: 34 35 $ gcloud compute ssh --zone us-central1-a docker-playground 36 docker-playground:~$ sudo docker run hello-world 37 Hello from Docker. 38 This message shows that your installation appears to be working correctly. 39 ... 40 41 Read more about [deploying Containers on Google Cloud Platform][5]. 42 43 [1]: https://cloud.google.com/console 44 [2]: https://developers.google.com/compute/docs/signup 45 [3]: https://developers.google.com/cloud/sdk 46 [4]: https://developers.google.com/compute/docs/containers#container-optimized_google_compute_engine_images 47 [5]: https://developers.google.com/compute/docs/containers