0

OS를 만드는 동안 "SSH를 기다리는 중"에 붙어. 나는 서비스 계정 키를 생성하여 json으로 저장하고 GOOGLE_APPLICATION_CREDENTIALS env 변수를 해당 파일에 지정했습니다. 그럼, 다음 명령을 실행하고 나는 인스턴스를 선택하면, 내가 SSH 키를 참조 고정 표시기 기계는 기계를

$ docker-machine create --driver google --google-project <my project id> --google-disk-size 20 --google-zone us-east1-d --google-machine-type n1-standard-1 --google-machine-image "coreos-cloud/global/images/coreos-stable-1520-8-0-v20171026" --google-username core --google-use-internal-ip vm-test 
Running pre-create checks... 
(vm-test) Check that the project exists 
(vm-test) Check if the instance already exists 
Creating machine... 
(vm-test) Generating SSH Key 
(vm-test) Creating host... 
(vm-test) Opening firewall ports 
(vm-test) Creating instance 
(vm-test) Waiting for Instance 
(vm-test) 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... 

는 사용자 core (나는 create 명령에 지정된)에 대해 생성과 연관되는 다음과 같은 결과를 얻었다 예. 그러나 도커 - 머신은 "SSH가 사용 가능할 때까지 기다리는 중"에 붙어 있으며 앞으로 움직이지 않습니다. 잠시 후

, docker-machine ls

$ docker-machine ls 
NAME  ACTIVE DRIVER STATE  URL SWARM DOCKER ERRORS 
vm-test   google Timeout       

답변

0

그것을 해결 (SSH 생성 여전히 기다리고 붙어있다) 다음과 같은 출력을 제공한다. --google-use-internal-ip을 사용했기 때문에 공용 NATd 대신 내부 IP를 사용하여 연결하려고했습니다.