Przeglądaj źródła

docs/installation/google: update to use container-vm images

Docker-DCO-1.1-Signed-off-by: Johan Euphrosine <proppy@google.com> (github: proppy)

rebased by

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
Johan Euphrosine 11 lat temu
rodzic
commit
456ba11d89
1 zmienionych plików z 24 dodań i 31 usunięć
  1. 24 31
      docs/sources/installation/google.md

+ 24 - 31
docs/sources/installation/google.md

@@ -4,52 +4,45 @@ page_keywords: Docker, Docker documentation, installation, google, Google Comput
 
 
 # Google Cloud Platform
 # 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
     $ curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash
     $ gcloud auth login
     $ gcloud auth login
     Enter a cloud project id (or leave blank to not set): <google-cloud-project-id>
     Enter a cloud project id (or leave blank to not set): <google-cloud-project-id>
+    ...
     ```
     ```
 
 
-3.  Start a new instance, select a zone close to you and the desired
-    instance size:
+3. Start a new instance using the latest [Container-optimized image][4]:
+   (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
-    >>> <zone-index>
-    1: machineTypes/n1-standard-1
-    ...
-    12: machineTypes/g1-small
-    >>> <machine-type-index>
+    $ gcloud compute instances create docker-playground \
+      --image projects/google-containers/global/images/container-vm-v20140522 \
+      --zone us-central1-a \
+      --machine-type f1-micro
     ```
     ```
 
 
-4.  Connect to the instance using SSH:
+4. Connect to the instance using SSH:
 
 
     ```
     ```
-    $ gcutil ssh docker-playground
-    $ docker-playground:~$
+    $ gcloud compute ssh --zone us-central1-a docker-playground
     ```
     ```
-
-5.  Install the latest Docker release and configure it to start when the
-    instance boots:
-
     ```
     ```
-    $ docker-playground:~$ curl get.docker.io | bash
-    $ docker-playground:~$ sudo update-rc.d docker defaults
+    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