Using docker community edition
- I have installed docker desktop in mac and configured the web proxy, I have logged in to docker shell and running application , application connecting to proxy and working fine
- I have installed docker engine in linux and configured proxy container level and docker level
ISSUE::
- If i run the application it will send the https request to get the info, in linux container not using the web proxy
- I have captured the packets and verified the proxy logs, not finding the any request from linux host
- If run curl or wget request receiving in proxy but application requests not receiving
- example:: curl -v
CMD
docker run -it --rm -e http_proxy=http://:8080 -e https_proxy=http://:8080 sh
I have tried all below possibilities still my application not running with proxy
- /etc/docker/daemon.json
{
“proxies”: {
“http-proxy”: “http://<ip>:8080”,
“https-proxy”: “http://<ip>:8080”
}
}
- /etc/systemd/system/docker.service.d/http-proxy.conf OR override.conf
[Service]
Environment=“HTTP_PROXY=http://<ip>:8080”
Environment=“HTTPS_PROXY=http://<ip>:8080”
- ~/.docker/config.json
{
“proxies”: {
“default”: {
“httpProxy”: “http://<ip>:8080”,
“httpsProxy”: “http://<ip>:8080”
}
}
}
- sudo systemctl edit docker
[Service]
Environment=“HTTP_PROXY=http://<ip>:8080”
Environment=“HTTPS_PROXY=http://<ip>:8080”
Note::
- My observation in mac, application using the docker desktop level proxy, if set container level it’s not taking it
- In Linux container level and docker level both not working
Could you please help me on the same issue…!
OS Version
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
Followed below link for installation
Link