title: Docker: Cannot pull an image that was pushed to a private registry
body: <p>I do this:</p>
  
  <p>docker pull my-private-repo.xyz.com:443/platform/abc</p>
  
  <p>I get following error:</p>
  
  <pre><code>Pulling repository my-private-repo.xyz.com:443/platform/abc
  Error: Status 400 trying to pull repository platform/abc: "{\n  \"errors\" : [ {\n    \"status\" : 400,\n    \"message\" : \"Unsupported docker v1 repository request for 'my-private-repo'\"\n  } ]\n}"
  </code></pre>
  
  <p>My docker daemon is configured as this:</p>
  
  <pre><code>{
    "insecure-registries" : [
      "my-private-repo.xyz.com:443"
    ],
    "experimental" : false
  }
  </code></pre>
  
  <p>Here is my docker info:</p>
  
  <pre><code>Containers: 0
   Running: 0
   Paused: 0
   Stopped: 0
  Images: 15
  Server Version: 1.13.0
  Storage Driver: aufs
   Root Dir: /var/lib/docker/aufs
   Backing Filesystem: extfs
   Dirs: 22
   Dirperm1 Supported: true
  Logging Driver: json-file
  Cgroup Driver: cgroupfs
  Plugins:
   Volume: local
   Network: bridge host macvlan null overlay
  Swarm: inactive
  Runtimes: runc
  Default Runtime: runc
  Init Binary: docker-init
  containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
  runc version: 2f7393a47307a16f8cee44a37b262e8b81021e3e
  init version: 949e6fa
  Security Options:
   seccomp
    Profile: default
  Kernel Version: 4.9.4-moby
  Operating System: Alpine Linux v3.5
  OSType: linux
  Architecture: x86_64
  CPUs: 4
  Total Memory: 1.952 GiB
  Name: moby
  ID: WW55:6DVS:DJCJ:3NXI:2CDX:44JW:F6IK:P2JU:LM7X:B76Y:HC3G:RCEU
  Docker Root Dir: /var/lib/docker
  Debug Mode (client): false
  Debug Mode (server): true
   File Descriptors: 16
   Goroutines: 27
   System Time: 2017-01-24T21:30:22.279581628Z
   EventsListeners: 1
  No Proxy: *.local, 169.254/16
  Registry: https://index.docker.io/v1/
  Experimental: false
  Insecure Registries:
   my-private-repo.xyz.com:443
   127.0.0.0/8
  Live Restore Enabled: false
  </code></pre>
  
  <p>Added the docker info above. Any solutions? pointers on what I could be doing wrong?</p>
  
  <p>docker client version is this:</p>
  
  <pre><code>13:39 $ docker --version
  Docker version 1.13.0, build 49bf474
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>Resolved. Looks like Docker is throwing ambiguous error message when the image does not exist in the repository. When I was doing this:</p>
  
  <pre><code>docker pull my-private-repo.xyz.com:443/platform/abc
  </code></pre>
  
  <p>I was expecting to pull the image with 'latest' tag to be downloaded. In the repository no such image exist with this tag. But the error thrown was wrong. </p>
  
  <p>In addition I also changed my daemon configuration as suggested in the comments to this:</p>
  
  <pre><code>{
    "experimental" : false,
    "disable-legacy-registry" : true,
    "insecure-registries" : [
      "my-private-repo.xyz.com:443"
    ]
  }
  </code></pre>
  
  <p>And now I am able to pull the image.</p>