无法从 Compute Engine 上的 Google Container Registry 中提取 Docker 图像

Can't Pull Docker Image From Google Container Registry on Compute Engine

我在 Google 计算实例上 运行ning CoreOS。我正在尝试为 运行 我在私有 Google Container Registry 中的自定义图像启动服务。根据文档,我需要 运行 gcloud docker -- pull <image>。当我这样做时,出现错误 Cannot connect to the Docker daemon. Is the docker daemon running on this host?

我已经解决了使用 docker-machine 设置 Docker 环境变量的类似问题。不幸的是,该命令不可用。

我已检查确保计算机实例具有对存储的读取权限。

如何从我的 Google Container Registry 获取我的 Docker 镜像到我的机器 运行ning CoreOS in Goolge Compute?

gcloud CLI 在 CoreOS 上的容器中运行,不幸的是会破坏 gcloud docker

请看看我们的 advanced authentication options,例如对于托管在 gcr.io 上的图片(相对于我们。gcr.io、eu.gcr.io ...)

docker login -u oauth2accesstoken -p "$(gcloud auth print-access-token)" https://gcr.io