Blame
|
1 | # docker 代理配置 |
||||||
| 2 | ||||||||
| 3 | 为 Docker 守护进程配置代理 |
|||||||
| 4 | ||||||||
| 5 | ```sh |
|||||||
| 6 | vi /etc/docker/daemon.json |
|||||||
| 7 | ``` |
|||||||
| 8 | ||||||||
| 9 | ```json |
|||||||
| 10 | { |
|||||||
| 11 | "proxies": { |
|||||||
| 12 | "http-proxy": "http://127.0.0.1:7890", |
|||||||
| 13 | "https-proxy": "http://127.0.0.1:7890", |
|||||||
| 14 | "no-proxy": "*.aliyun.com,*.*.aliyuncs.com,127.0.0.0/8" |
|||||||
| 15 | } |
|||||||
| 16 | } |
|||||||
| 17 | ``` |
|||||||
| 18 | ||||||||
| 19 | 参考链接 |
|||||||
| 20 | ||||||||
| 21 | [Configure the Docker daemon to use a proxy server](https://docs.docker.com/config/daemon/systemd/#httphttps-proxy) |
|||||||
| 22 | ||||||||
| 23 | [Configure the Docker daemon](https://docs.docker.com/config/daemon/#configure-the-docker-daemon) |
|||||||