Docker on Google Compute f1-micro实例

时间:2016-06-20 07:45:24

标签: docker google-compute-engine docker-machine

我正在尝试在Google计算引擎上部署新的docker机器,但我不需要太多资源。只是一个简单的nginx服务器。

当我跑步时:

$ docker-machine create --driver google --google-project my-project-name my-machine-name

它运行良好但创建了n1-standard-1 (1个vCPU,3.75 GB内存)实例, 但它有更多的资源,然后我需要。 我还能够成功创建g1-small (1个vCPU,1.7 GB内存)实例。 但是当我尝试创建最小的实例f1-micro (1个vCPU,0.6 GB的内存)时,它会卡在Installing docker

我正在使用命令:

$ docker-machine create --driver google --google-project my-project-name --google-machine-type f1-micro my-machine-name

控制台输出:

Running pre-create checks...
(my-machine-name) Check that the project exists
(my-machine-name) Check if the instance already exists
Creating machine...
(my-machine-name) Generating SSH Key
(my-machine-name) Creating host...
(my-machine-name) Opening firewall ports
(my-machine-name) Creating instance
(my-machine-name) Waiting for Instance
(my-machine-name) Uploading SSH Key
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...

码头机是否有最低要求?因为我看起来并且无法找到它。 从我在documentation的例子中看到的应该是可能的:

$ gcloud auth login
$ docker-machine create --driver google --google-project PROJECT_ID vm01
$ docker-machine create --driver google \
  --google-project PROJECT_ID \
  --google-zone us-central1-a \
  --google-machine-type f1-micro \
  vm02

我错过了什么吗? 感谢。

1 个答案:

答案 0 :(得分:3)

好吧它结束了工作它花了很长时间。

在我的情况下,

15-20分钟。 (3种不同的机器)