# Linux: Docker Cli will support web proxy?

**URL:** <https://forums.docker.com/t/linux-docker-cli-will-support-web-proxy/143887>\
**Category:** General\
**Created:** [September 20, 2024, 7:47am UTC](https://forums.docker.com/t/linux-docker-cli-will-support-web-proxy/143887 "2024-09-20T07:47:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sang771](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/sang771/32/51665_2.png) [@sang771](https://forums.docker.com/u/sang771)\
**Post date:** [September 20, 2024, 7:47am UTC](https://forums.docker.com/t/linux-docker-cli-will-support-web-proxy/143887/1 "2024-09-20T07:47:21Z")

</div>

Using docker community edition

1. 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
2. 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

```auto
{
    “proxies”: {
          “http-proxy”: “http://<ip>:8080”,
          “https-proxy”: “http://<ip>:8080”
    }
}

```

- /etc/systemd/system/docker.service.d/http-proxy.conf OR override.conf

```auto
[Service]
Environment=“HTTP_PROXY=http://<ip>:8080”
Environment=“HTTPS_PROXY=http://<ip>:8080”

```

- ~/.docker/config.json

```auto
{
   “proxies”: {
          “default”: {
          “httpProxy”: “http://<ip>:8080”,
            “httpsProxy”: “http://<ip>:8080”
         }
    }
}

```

- sudo systemctl edit docker

```auto
[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**

```auto
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

```

Followed below link for installation  
[Link](https://docs.docker.com/engine/install/ubuntu/)

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [September 20, 2024, 10:38am UTC](https://forums.docker.com/t/linux-docker-cli-will-support-web-proxy/143887/2 "2024-09-20T10:38:42Z")

</div>

It does. I’m going to close this topic so we don’t discuss the same in two different topics. Let’s continue here:

> [@Linux: Container application not running with web proxy, same application working on Docker desktop(mac) with proxy](https://forums.docker.com/t/linux-container-application-not-running-with-web-proxy-same-application-working-on-docker-desktop-mac-with-proxy/143847):
>
> 1.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 2. I have installed [docker.io](http://docker.io)(apt install [docker.io](http://docker.io)) in linux and configured proxy CMD: docker run -it --rm -e http\_proxy=http://:8080 -e https\_proxy=http://:8080 sh i have tried all below possibilities added proxy details: /etc/docker/daemon.json { “proxies”: { “http-proxy”: “http://:8080”, “https-proxy”: “h…

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [September 20, 2024, 10:38am UTC](https://forums.docker.com/t/linux-docker-cli-will-support-web-proxy/143887/3 "2024-09-20T10:38:58Z")

</div>

Closed on September 20, 2024, 10:38am UTC


