1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/sources/installation/google.md
James Turnbull 838e69e11e Removed Docker production warnings
* Removed warnings.
* Removed inconsistent Community installation sections.
* Fixed all installation page descriptions.
* Removed old .inc files.

Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)
2014-05-27 13:08:19 -04:00

1.6 KiB

page_title: Installation on Google Cloud Platform page_description: Installation instructions for Docker on the Google Cloud Platform. page_keywords: Docker, Docker documentation, installation, google, Google Compute Engine, Google Cloud Platform

Google Cloud Platform

  1. Go to Google Cloud Console and create a new Cloud Project with Compute Engine enabled.

  2. Download and configure the Google 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/