1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #5746 from ImJasonH/patch-1

Update google.md
This commit is contained in:
James Turnbull 2014-05-22 13:43:40 +10:00
commit 7470ebf30b

View file

@ -19,17 +19,16 @@ page_keywords: Docker, Docker documentation, installation, google, Google Comput
https://developers.google.com/cloud/sdk/) to use your project https://developers.google.com/cloud/sdk/) to use your project
with the following commands: 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 3. Start a new instance, select a zone close to you and the desired
instance size: instance size:
<!-- --> ```
$ gcutil addinstance docker-playground --image=backports-debian-7 $ gcutil addinstance docker-playground --image=backports-debian-7
1: europe-west1-a 1: europe-west1-a
... ...
@ -39,25 +38,26 @@ page_keywords: Docker, Docker documentation, installation, google, Google Comput
... ...
12: machineTypes/g1-small 12: machineTypes/g1-small
>>> <machine-type-index> >>> <machine-type-index>
```
4. Connect to the instance using SSH: 4. Connect to the instance using SSH:
<!-- --> ```
$ gcutil ssh docker-playground $ gcutil ssh docker-playground
$ docker-playground:~$ $ docker-playground:~$
```
5. Install the latest Docker release and configure it to start when the 5. Install the latest Docker release and configure it to start when the
instance boots: instance boots:
<!-- --> ```
$ docker-playground:~$ curl get.docker.io | bash $ docker-playground:~$ curl get.docker.io | bash
$ docker-playground:~$ sudo update-rc.d docker defaults $ docker-playground:~$ sudo update-rc.d docker defaults
```
6. Start a new container: 6. Start a new container:
<!-- --> ```
$ docker-playground:~$ sudo docker run busybox echo 'docker on GCE \o/' $ docker-playground:~$ sudo docker run busybox echo 'docker on GCE \o/'
$ docker on GCE \o/ $ docker on GCE \o/
```