docker desktop的proxy配置

docker内可以通过host.docker.internal访问宿主机

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false,
  "proxies": {
    "http-proxy": "http://host.docker.internal:3130",
    "https-proxy": "http://host.docker.internal:3130",
    "no-proxy": "*.test.example.com,.example.org, localhost, 127.0.0.1,host.docker.internal"
  }
}