Pulling Images from a Private Docker Registry

Fixing errors when pulling from a private registry on a remote office PC: disable Docker app proxy, add hosts mapping, and set hosts in ~/.docker/config.json.

Feb 8, 2022 · 1 min read · 55 Words · -Views -Comments · Programming
DevOps 🇨🇳 阅读中文版
Read with AI

Choose an AI assistant

ChatGPT Open in a new tab with the article link and prompt
Claude Copy the prompt, then open Claude

Open Claude
Trouble reading the article?

If the prompt is missing, copy the full prompt below into your AI assistant. If the AI cannot read the article, paste the visible passage you want to discuss and add your question.

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