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.
clipboard.png

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

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.

clipboard.png

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 archive.ubuntu.com not to be resolved.

I remember that the DNS used by docker by default is google’s 8.8.8.8, 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