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?
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 22.214.171.124, 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 Aliyun