Container/Docker
[Docker] 도커 GCP docker host 프로비저닝 시 "error with pre-create check" 에러 발생
KoreaNirsa
2020. 3. 18. 13:36
반응형
-
도커 GCP docker host 프로비저닝 시 "error with pre-create check" 에러 발생
GCP에 docker host를 프로비저닝 할 때 "error with pre-create check" 에러가 발생할 수 있습니다. 에러 발생을 유발시키는 명령과 에러 메세지는 아래와 같습니다.
| 에러 발생 명령어 |
| docker-machine create --driver google \ --google-project Docker-Project \ --google-zone asia-northeast3-a \ --google-machine-type f1-micro \ docker-web |
| 에러 메세지 |
| (docker-web) Check that the project exists Error with pre-create check: "Project with ID \"Docker-Project\" not found. googleapi: Error 400: Invalid value 'Docker-Project'. Values must match the following regular expression: '(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))', invalidParameter" |
해당 에러는 project id를 정확히 찾지 못해 400 에러를 발생시키는것이며 아래 이미지와 같이 GCP 상단 프로젝트란을 클릭 후 나오는 프로젝트 이름이 아닌, 프로젝트 ID를 적어주면 에러를 해결할 수 있습니다.

반응형