Google Cloud Platform

使用Container-optimized Google Compute Engine images快速开始。

  1. 进入Google Cloud Console 创建一个新的Cloud Project with Compute Engine enabled

  2. 下载和配置 Google Cloud SDK 来使用你的项目,通过如下命令:

    1. $ curl -sSL https://sdk.cloud.google.com | bash
    2. $ gcloud auth login
    3. $ gcloud config set project <google-cloud-project-id>
  3. 使用最新的启动新的实例 Container-optimized image: (select a zone close to you and the desired instance size)

    1. $ gcloud compute instances create docker-playground \
    2. --image container-vm \
    3. --zone us-central1-a \
    4. --machine-type f1-micro
  4. 使用SSH链接到实例:

    1. $ gcloud compute ssh --zone us-central1-a docker-playground
    2. docker-playground:~$ sudo docker run hello-world

    Hello from Docker. 显示在你的安装界面证明其正常工作。 …

阅读更多请点击deploying Containers on Google Cloud Platform.