
This PR aims to increase the consistency across the docs for code blocks and code/comment/output markings. Rule followed here is "what's visible on the screen should be reflected" Issue: - Docs had various code blocks showing: comments, commands & outputs. - All three of these items were inconsistently marked. Some examples as to how this PR aims to introduce improvements: 1. Removed `> ` from in front of the "outputs". Eg, ` > REPOSITORY TAG ID CREATED` replaced with: ` REPOSITORY TAG ID CREATED`. 2. Introduced `$` for commands. Eg, ` sudo chkconfig docker on` replaced with: ` $ sudo chkconfig docker on` 3. Comments: ` > # ` replaced with: ` # `. > Please note: > Due to a vast amount of items reviewed and changed for this PR, there > might be some individually incorrect replacements OR patterns of incorrect > replacements. This PR needs to be reviewed and if there is anything missing, > it should be improved or amended. Closes: https://github.com/dotcloud/docker/issues/5286 Docker-DCO-1.1-Signed-off-by: O.S. Tezer <ostezer@gmail.com> (github: ostezer)
63 lines
1.9 KiB
Markdown
63 lines
1.9 KiB
Markdown
page_title: Installation on Google Cloud Platform
|
|
page_description: Please note this project is currently under heavy development. It should not be used in production.
|
|
page_keywords: Docker, Docker documentation, installation, google, Google Compute Engine, Google Cloud Platform
|
|
|
|
# Google Cloud Platform
|
|
|
|
> **Note**:
|
|
> Docker is still under heavy development! We don't recommend using it in
|
|
> production yet, but we're getting closer with each release. Please see
|
|
> our blog post, [Getting to Docker 1.0](
|
|
> http://blog.docker.io/2013/08/getting-to-docker-1-0/)
|
|
|
|
## Compute Engine QuickStart for Debian
|
|
|
|
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:
|
|
|
|
<!-- -->
|
|
|
|
$ 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, 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>
|
|
|
|
4. Connect to the instance using SSH:
|
|
|
|
<!-- -->
|
|
|
|
$ gcutil ssh docker-playground
|
|
$ 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
|
|
|
|
6. Start a new container:
|
|
|
|
<!-- -->
|
|
|
|
$ docker-playground:~$ sudo docker run busybox echo 'docker on GCE \o/'
|
|
$ docker on GCE \o/
|