无法使用来自 GCP 容器注册表的映像启动 Docker 个容器

Failed to start Docker container with image from GCP Container Registry

我正在尝试使用 Google Cloud Platform 的 Container Registry 中的图像启动容器。但是它returns这个错误信息

Error: Status 405 trying to pull repository project/image: "v1 Registry API 
is disabled. If you are not explicitly using the v1 Registry API, it is 
possible your v2 image could not be found. Verify that your image is 
available, or retry with `dockerd --disable-legacy-registry`."

当我运行docker pull时,它也returns同样的错误。我可以毫无问题地将构建的图像推送到同一个注册表,但由于某种原因无法拉取。

我对 Docker 和 docker-compose 还是个新手,所以我真的不确定哪一部分是错误的。这些是我的 docker-compose 文件和 Docker 版本:

version: '2'
services:
  web:
    image: 'asia.gcr.io/project/image:${tag}'

$ docker version
Client:
 Version:      17.03.1-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:10:36 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.1-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:10:36 2017
 OS/Arch:      linux/amd64
 Experimental: false

标签存在于注册表中

$ gcloud container images list-tags asia.gcr.io/project/image
DIGEST        TAGS      TIMESTAMP
8eb78a1ee2c8  0.3.84.1  2018-07-10T04:34:02
8e36423231ab  0.3.83.3  2018-06-26T09:17:45
004390b9b471  0.3.83.2  2018-06-26T08:05:37

我升级了我的 Docker 和 docker-compose,现在它可以正常工作了。不确定问题的真正原因是什么,因为我的其他服务器仍在使用上述版本并且工作正常。 只想把这个留给有这个问题的其他人。