title: Failed to start Docker container with image from GCP Container Registry
body: <p>I'm trying to start a container using an image from Google Cloud Platform's Container Registry. But it returns this error message</p>
  
  <pre><code>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`."
  </code></pre>
  
  <p>It also returns the same error when I run <code>docker pull</code>. I can push built images to the same registry without any problem, but can't pull for some reason.</p>
  
  <p>I'm still new with Docker and docker-compose so I'm really not sure which part is wrong. These are my docker-compose file and Docker version:</p>
  
  <pre><code>version: '2'
  services:
    web:
      image: 'asia.gcr.io/project/image:${tag}'
  </code></pre>
  
  <hr>
  
  <pre><code>$ 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
  </code></pre>
  
  <p>The tag exists in the registry</p>
  
  <pre><code>$ 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
  </code></pre>