Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 992 Bytes

dockerhub_proxy.md

File metadata and controls

41 lines (31 loc) · 992 Bytes

Set up Docker Hub Proxies

If you are in Mainland China, you may not be able to directly fetch the docker images used by the emulator. To solve this problem, you need to set up proxies.

  1. Add the pip proxy:
pip install --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  1. Add the dockerhub proxy:
  • Open the daemon.json file
sudo vim /etc/docker/daemon.json
  • Add the following entries. These proxies worked when we wrote this document, but there is no guarantee. You can search for working proxies if the situations have changed.
{
  "registry-mirrors": [
      "https://docker.mirrors.ustc.edu.cn",
      "https://dockerproxy.com",
      "https://hub-mirror.c.163.com",
      "https://mirror.baidubce.com",
      "https://ccr.ccs.tencentyun.com"
  ]
}
  • Restart docker
sudo systemctl daemon-reload
sudo systemctl restart docker