On Mac, install tinyproxy using Homebrew and disable access control (or modify for
your environment), then spawn in foreground
brew install tinyproxy
gsed -i'' 's/^Allow /#Allow /' /usr/local/etc/tinyproxy.conf
tinyproxy -d
In another terminal, SSH to Atomic Host box and provide remote port forwarding.
ssh -R8888:127.0.0.1:8888 user@hostname
If everything was successful (after you've configured Docker via systemd from other gist file), you'll be able to use Docker to download containers via the HTTP host. To use the proxy to download other things using something like curl, just use the environment variables.
http_proxy=127.0.0.1:8888 curl http://something.com/great/resource.tar.gz