我正在尝试在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...
码头机有最低要求吗?因为我看了看,找不到它。从我在文档中的示例中看到的内容,应该有可能:
$ 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
我错过了什么吗?谢谢。
好吧,它最终工作了很长时间。
15-20分钟在我的情况下。(3台不同的机器)