Google Compute f1-micro实例上的Docker
我试图在google计算引擎上部署一个新的docker机器,但是我不需要太多的资源。 只是一个简单的nginx服务器。
当我运行:
$ docker-machine create --driver google --google-project my-project-name my-machine-name
它工作的很好,但创build一个n1-standard-1
(1 vCPU,3.75 GB的内存)的实例,但它有更多的资源,然后我需要。 我也成功地创build了一个g1-small
(1个vCPU,1.7 GB内存)实例。 但是,当我尝试创build最小的实例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...
docker机是否有最低要求? 因为我看了,无法find它。 从我在文档的例子中看到的应该是可能的:
$ 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个不同的机器)
- 从Google Container Registry(不包括gcloud)中提取私人泊坞窗图片
- 在Google Compute Engine上部署可扩展的MEAN Stack体系结构
- Google容器registry+ Google计算引擎+ Docker
- 数千个CAdvisor Docker容器被创build,直到磁盘空间不足
- 如何在Google Compute Engine(GCE)内核上获得AUFS内核模块?
- 如何停止使用谷歌pipe理虚拟机时创build额外的实例?
- Docker swarm-manager显示旧的容器信息
- Docker数据卷和分布式系统中的扩展
- GCE上的Docker容器中的RStudio服务器失败