@@ -58,3 +58,74 @@ Simply add the serial number to the `INPUTSRC` argument when calling the pipelin
5858```
5959INPUTSRC=725112060400 make run-demo
6060```
61+
62+ ## Q: How to configure centralized proxy?
63+
64+ A: Please follow the below steps to configure the proxy
65+
66+ # 1. Configure Proxy for the Current Shell Session
67+
68+ ``` bash
69+ export http_proxy=http://< proxy-host> :< port>
70+ export https_proxy=http://< proxy-host> :< port>
71+ export HTTP_PROXY=http://< proxy-host> :< port>
72+ export HTTPS_PROXY=http://< proxy-host> :< port>
73+ export NO_PROXY=localhost,127.0.0.1,::1
74+ export no_proxy=localhost,127.0.0.1,::1
75+ export socks_proxy=http://< proxy-host> :< port>
76+ export SOCKS_PROXY=http://< proxy-host> :< port>
77+ ```
78+
79+ # 2. System-Wide Proxy Configuration
80+
81+ System-wide environment (/etc/environment)
82+ (Run: sudo nano /etc/environment and add or update)
83+
84+ ``` bash
85+ http_proxy=http://< proxy-host> :< port>
86+ https_proxy=http://< proxy-host> :< port>
87+ ftp_proxy=http://< proxy-host> :< port>
88+ socks_proxy=http://< proxy-host> :< port>
89+ no_proxy=localhost,127.0.0.1,::1
90+
91+ HTTP_PROXY=http://< proxy-host> :< port>
92+ HTTPS_PROXY=http://< proxy-host> :< port>
93+ FTP_PROXY=http://< proxy-host> :< port>
94+ SOCKS_PROXY=http://< proxy-host> :< port>
95+ NO_PROXY=localhost,127.0.0.1,::1
96+ ```
97+ # 3. Docker Daemon & Client Proxy Configuration
98+
99+ Docker daemon drop-in (/etc/systemd/system/docker.service.d/http-proxy.conf)
100+ Create dir if missing:
101+ sudo mkdir -p /etc/systemd/system/docker.service.d
102+ sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf
103+
104+ ``` bash
105+ [Service]
106+ Environment=" http_proxy=http://<proxy-host>:<port>"
107+ Environment=" https_proxy=http://<proxy-host>:<port>"
108+ Environment=" no_proxy=localhost,127.0.0.1,::1"
109+ Environment=" HTTP_PROXY=http://<proxy-host>:<port>"
110+ Environment=" HTTPS_PROXY=http://<proxy-host>:<port>"
111+ Environment=" NO_PROXY=localhost,127.0.0.1,::1"
112+ Environment=" socks_proxy=http://<proxy-host>:<port>"
113+ Environment=" SOCKS_PROXY=http://<proxy-host>:<port>"
114+
115+ # Reload & restart:
116+ sudo systemctl daemon-reload
117+ sudo systemctl restart docker
118+
119+ # Docker client config (~/.docker/config.json)
120+ # mkdir -p ~/.docker
121+ # nano ~/.docker/config.json
122+ {
123+ " proxies" : {
124+ " default" : {
125+ " httpProxy" : " http://<proxy-host>:<port>" ,
126+ " httpsProxy" : " http://<proxy-host>:<port>" ,
127+ " noProxy" : " localhost,127.0.0.1,::1"
128+ }
129+ }
130+ }
131+ ```
0 commit comments