Pulling Images from a Private Docker Registry

Feb 8, 2022 · 1 min read · 55 Words · -Views -Comments

When pulling images from a private registry on a remote office PC, I got a “Service Available” error. After investigation, the following steps fixed it.

Fix

  1. Disable the Docker App proxy.

  2. Add a hosts entry locally, for example 9.111.111.111 xxx.1991421.cn.

  3. Edit ~/.docker/config.json and add hosts.

    {
      "credsStore" : "desktop",
      "auths" : {
    
      },
      "hosts":["tcp://127.0.0.1:12639"]
    }
    
Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover