From 456ba11d89b52f946d293489b52508a2e270f1a7 Mon Sep 17 00:00:00 2001 From: Johan Euphrosine Date: Tue, 27 May 2014 15:51:05 -0700 Subject: [PATCH] docs/installation/google: update to use container-vm images Docker-DCO-1.1-Signed-off-by: Johan Euphrosine (github: proppy) rebased by Docker-DCO-1.1-Signed-off-by: Sven Dowideit (github: SvenDowideit) --- docs/sources/installation/google.md | 57 +++++++++++++---------------- 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/docs/sources/installation/google.md b/docs/sources/installation/google.md index bb8a961470..fe3d0619ce 100644 --- a/docs/sources/installation/google.md +++ b/docs/sources/installation/google.md @@ -4,52 +4,45 @@ page_keywords: Docker, Docker documentation, installation, google, Google Comput # Google Cloud Platform -1. Go to [Google Cloud Console](https://cloud.google.com/console) and - create a new Cloud Project with [Compute Engine - enabled](https://developers.google.com/compute/docs/signup). -2. Download and configure the [Google Cloud SDK]( - https://developers.google.com/cloud/sdk/) to use your project - with the following commands: +## QuickStart with Container-optimized Google Compute Engine images + +1. Go to [Google Cloud Console][1] and create a new Cloud Project with + [Compute Engine enabled][2] + +2. Download and configure the [Google Cloud SDK][3] to use your + project with the following commands: ``` $ curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash $ gcloud auth login Enter a cloud project id (or leave blank to not set): - ``` - -3. Start a new instance, select a zone close to you and the desired - instance size: - - ``` - $ gcutil addinstance docker-playground --image=backports-debian-7 - 1: europe-west1-a ... - 4: us-central1-b - >>> - 1: machineTypes/n1-standard-1 - ... - 12: machineTypes/g1-small - >>> ``` -4. Connect to the instance using SSH: +3. Start a new instance using the latest [Container-optimized image][4]: + (select a zone close to you and the desired instance size) ``` - $ gcutil ssh docker-playground - $ docker-playground:~$ + $ gcloud compute instances create docker-playground \ + --image projects/google-containers/global/images/container-vm-v20140522 \ + --zone us-central1-a \ + --machine-type f1-micro ``` -5. Install the latest Docker release and configure it to start when the - instance boots: +4. Connect to the instance using SSH: ``` - $ docker-playground:~$ curl get.docker.io | bash - $ docker-playground:~$ sudo update-rc.d docker defaults + $ gcloud compute ssh --zone us-central1-a docker-playground + ``` + ``` + docker-playground:~$ sudo docker run busybox echo 'docker on GCE \o/' + docker on GCE \o/ ``` -6. Start a new container: +Read more about [deploying Containers on Google Cloud Platform][5]. - ``` - $ docker-playground:~$ sudo docker run busybox echo 'docker on GCE \o/' - $ docker on GCE \o/ - ``` +[1]: https://cloud.google.com/console +[2]: https://developers.google.com/compute/docs/signup +[3]: https://developers.google.com/cloud/sdk +[4]: https://developers.google.com/compute/docs/containers#container-optimized_google_compute_engine_images +[5]: https://developers.google.com/compute/docs/containers