mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e2119f3050
Docker-DCO-1.1-Signed-off-by: Johan Euphrosine <proppy@google.com> (github: proppy)
1.7 KiB
1.7 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
QuickStart with Container-optimized Google Compute Engine images
-
Go to Google Cloud Console and create a new Cloud Project with Compute Engine enabled
-
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> ...
-
Start a new instance using the latest Container-optimized image: (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
-
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/
Read more about deploying Containers on Google Cloud Platform.