发布于 2015-09-10 16:15:02 | 437 次阅读 | 评论: 0 | 来源: 网络整理
注解
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”
$ 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>
$ 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>
$ gcutil ssh docker-playground docker-playground:~$
docker-playground:~$ curl get.docker.io | bash docker-playground:~$ sudo update-rc.d docker defaults
docker-playground:~$ sudo docker run busybox echo 'docker on GCE o/' docker on GCE o/