Docker implementation of TinyProxy
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 --verbose
# or
curl -x 127.0.0.1:8888 curl https://www.google.com --verbose
# or proxy all requests from linux based containers
docker run -t -i \
--link tinyproxy \
redhat/ubi9-minimal \
curl -x http://tinyproxy:8888 -L https://www.google.com --verbose
docker run -t -i \
-v $(pwd)/tinyxproxy.conf:/etc/tinyproxy.conf
-p 8888:8888 \
tinyproxy
MIT © Travix International