How does docker Set up Agents under mac

  docker, question
  • Docker is the docker for mac used.

  • The local proxy port is 127.0.0.1: 1080

  • Proxy I am using SpechtLite

The problem now is that although the agent port of docker can be set up, my agent is the local port 1080 of 127.0.0.1, which is written directly into docker. It accesses the local address in its virtual machine … If 192.168.3.101:1080 in the intranet is filled in, my agent will only listen to the local port 1080 of 127.0.0.1.

So I would like to ask what methods can be used by docker to use my local agent?

图片描述

  1. According to thisDocumentLi said that setting up the system agent docker will automatically use the agent to pull, but in fact, the agent is still not used when pulling.
    图片描述

Direct system proxy, proxy global traffic

There is a portal here.https://segmentfault.com/q/10 …

Here is a document
https://docs.docker.com/docke …