https://github.com/wheelerlaw/docker-https-dns-proxy
https://github.com/wheelerlaw/docker-https-dns-proxy
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wheelerlaw/docker-https-dns-proxy
- Owner: wheelerlaw
- Created: 2018-04-25T03:54:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T22:28:13.000Z (about 7 years ago)
- Last Synced: 2025-01-30T07:43:15.279Z (11 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-https-dns-proxy
Wraps [https_dns_proxy](https://github.com/aarond10/https_dns_proxy) in an easy to use Docker image.
### Usage:
To run:
```
docker run --net=host --privileged wheelerlaw/https-dns-proxy [-a ] [-p ] [-t ] [other https_dns_proxy arguments]
```
Options:
```
-a listen-addr Local address to bind to. (127.0.0.1)
-p listen-port Local port to bind to. (5053)
-t proxy-URL Upstream proxy server to forward requests to (http://localhost:3128).
```
The proxy can also be specified by environment variable:
```
docker run --net=host --privileged -e http_proxy wheelerlaw/https-dns-proxy [-a ] [-p ]
```
**Note:** By default, `https_dns_proxy` will listen on `127.0.0.1`. You will probably want to change it to the `docker0` address so your other containers can connect to it:
```
docker run --net=host --privileged wheelerlaw/https-dns-proxy -a 172.17.0.1
```
### Building
To build the image:
```
docker build .
```
If you are trying to build the image while behind a proxy, you can specify the proxy server:
```
docker build --build-arg "http_proxy=" --build-arg "https_proxy=" .
```
Or if your proxy host is defined in a local environment variable (`http_proxy`):
```
docker build --build-arg http_proxy --build-arg https_proxy .
```
If `http_proxy` is set to `http://localhost:3128` (if you are connecting through Cntlm for example), then it is likely the above commands won't work. You will need to tell the Docker daemon to use the host network stack:
```
docker build --build-arg http_proxy --build-arg https_proxy --network=host .
```