You need to add an Internet proxy in the docker configuration file.
The specific method is as follows:
1. Edit /usr/lib/systemd/system/docker.service and add the following two paragraphs
1 2 3 4 5 |
|
2. Restart docker.service Service
1 2 |
|
3. Finally test whether docker can connect to the Internet
1 |
|
Recommended tutorial: docker tutorial
The above is the detailed content of How docker accesses the Internet through a proxy. For more information, please follow other related articles on the PHP Chinese website!