The docker Agent Problem

  docker, question

The company’s network requires an agent to connect to the external network.

Pulling the mirror will report an error.

If you use a local mirror, you cannot connect to the network.

However, I don’t know how to configure the agent of docker. The agent provided by docker tool seems unable to be configured, and the specific usage is not clear.


May I know how to configure the docker agent?

Thank you

This is not a question of agency. Your problem is obviously that the DNS in the container is wrong, which causes the domain name not to be resolved.

I remember that the DNS used by docker by default is google’s, which has long been blocked in China. Try changing the dns of the docker container in the network option, such as using the DNS of Aliyun223.5.5.5