【发布时间】:2017-06-03 13:30:59
【问题描述】:
我正在尝试将 Docker 映像从 Google Container Registry 获取到 Google Compute Engine 实例上。 (我需要的图片已经成功上传到GCR。)
我使用
gcloud auth login登录,然后尝试gcloud docker pull -- us.gcr.io/app-999/app,结果为ERROR: (gcloud.docker) Docker is not installed.。-
我尝试使用oauth 进行身份验证并通过正常的 docker 调用进行拉取。当我查看
.docker/config.json的文件时,我看到了我的凭据。这样做,看起来它会起作用,但最终是这样结束的:mbname@instance-1 ~ $ docker pull -- us.gcr.io/app-999/app Using default tag: latest latest: Pulling from app-999/app b7f33cc0b48e: Pulling fs layer 43a564ae36a3: Pulling fs layer b294f0e7874b: Pulling fs layer eb34a236f836: Waiting error pulling image configuration: unauthorized: authentication required
这看起来像是进度,因为至少它尝试下载了一些东西。
我也在本地机器上尝试了这两种方法,两种方法都成功了。
我错过了什么吗?
感谢您的帮助。
附:我还尝试从另一个注册表加载容器( Docker Hub),效果很好,但我需要多个容器并且希望降低开支。
【问题讨论】:
标签: docker google-compute-engine gcloud google-container-registry