Google 도킹 머신을 Google 계산 엔진에 배포하려고하지만 리소스가 너무 많습니다. 그냥 간단한 nginx 서버. 그것은 잘 작동하지만 n1-standard-1
(vCPU 1 개, 3.75 GB 메모리) 예, 를 생성Docker on Google Compute f1-micro 인스턴스
$ docker-machine create --driver google --google-project my-project-name my-machine-name
하지만 내가 필요로하는 다음 방법으로 더 많은 자원을 가지고
나는 실행합니다. g1-small
(1 vCPU, 1.7GB 메모리) 인스턴스를 성공적으로 만들 수있었습니다. 하지만 난이 작은 예를 f1-micro
(vCPU 1 개, 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
내가 아무것도 실종? 감사합니다. .