Docker image with a caching proxy (squid)
$ docker build -t caching-proxy .
docker run -v ~/tmp/cache/squid:/var/cache/squid -v ~/tmp/log/squid:/var/log/squid -it --rm -p 3128:3128 --name proxy caching-proxy
Set your system proxy to localhost:3128.