Przeglądaj źródła

docs/google: fix code blocks

Docker-DCO-1.1-Signed-off-by: Johan Euphrosine <proppy@google.com> (github: proppy)
Johan Euphrosine 11 lat temu
rodzic
commit
e2119f3050
1 zmienionych plików z 11 dodań i 19 usunięć
  1. 11 19
      docs/sources/installation/google.md

+ 11 - 19
docs/sources/installation/google.md

@@ -12,32 +12,24 @@ page_keywords: Docker, Docker documentation, installation, google, Google Comput
 2. Download and configure the [Google Cloud SDK][3] to use your
 2. Download and configure the [Google Cloud SDK][3] to use your
    project with the following commands:
    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): <google-cloud-project-id>
-    ...
-    ```
+        $ 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): <google-cloud-project-id>
+        ...
 
 
 3. Start a new instance using the latest [Container-optimized image][4]:
 3. Start a new instance using the latest [Container-optimized image][4]:
    (select a zone close to you and the desired instance size)
    (select a zone close to you and the desired instance size)
 
 
-    ```
-    $ gcloud compute instances create docker-playground \
-      --image projects/google-containers/global/images/container-vm-v20140522 \
-      --zone us-central1-a \
-      --machine-type f1-micro
-    ```
+        $ 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:
 
 
-    ```
-    $ gcloud compute ssh --zone us-central1-a docker-playground
-    ```
-    ```
-    docker-playground:~$ sudo docker run busybox echo 'docker on GCE \o/'
-    docker on GCE \o/
-    ```
+        $ gcloud compute ssh --zone us-central1-a docker-playground
+        docker-playground:~$ sudo docker run busybox echo 'docker on GCE \o/'
+        docker on GCE \o/
 
 
 Read more about [deploying Containers on Google Cloud Platform][5].
 Read more about [deploying Containers on Google Cloud Platform][5].