Sign inSign up

diwu1989/tinyproxy-docker

By diwu1989

•Updated over 3 years ago

Image
0

320

diwu1989/tinyproxy-docker repository overview

⁠Docker Tinyproxy

Stars Pulls License

Docker implementation of TinyProxy⁠

⁠Getting started

For testing purpose, you may want to change the tinyproxy.conf and switch the LogLevel value to Info and comment the Allow line.

# build docker image
docker build -t tinyproxy .

# run container in background
docker run -d --name tinyproxy -p 8888:8888 tinyproxy

# proxy request via the running container
http_proxy=127.0.0.1:8888 https_proxy=127.0.0.1:8888 curl https://www.google.com -v

# or
curl -x 127.0.0.1:8888 curl https://www.google.com -v

# or proxy all requests from linux based containers
docker run -t -i \
  -e "http_proxy=tinyproxy:8888" \
  -e "https_proxy=tinyproxy:8888" \
  --link tinyproxy \
  travix/toolbox \
  curl https://www.google.com

⁠Custom Tinyproxy configuration

docker run -t -i \
  -v $(pwd)/tinyxproxy.conf:/etc/tinyproxy.conf
  -p 8888:8888 \
  tinyproxy

⁠License

MIT © Travix International⁠

Tag summary

Content type

Image

Digest

sha256:fba8d9605…

Size

3.1 MB

Last updated

over 3 years ago

docker pull diwu1989/tinyproxy-docker