docker-proxify creates a container environment in which outbound connections are transparently proxied through a proxy server.
docker-proxify is a docker-within-docker container that eases development when operating behind a restrictive firewall that requires a proxy server for outbound internet connectivity, by making the use of the proxy server transparent to the applications running inside the container.
An example use case for docker-proxify would be if you wanted to run a docker container that expects direct internet access, but you are stuck behind a restrictive firewall that only allows outbound connections via a proxy server. Rather than running the docker container directly, first start the docker-proxify container (specifying the proxy settings) and then run the actual docker container within the docker-proxify environment, and its networking should work without having to have any proxy configuration or even support for proxies.
The Dockerfile and related scripts are available from the GitHub Repository
An associated docker image is also available from Docker Hub
Assuming you have docker installed, you can get the image directly from Docker Hub by running:
docker pull jrandall/docker-proxify
Assuming you already have the
https_proxy environment variables set appropriately, you could run docker-proxify using the command:
docker run -i -t --privileged -e http_proxy -e https_proxy jrandall/docker-proxify
docker-proxify is available under the terms of the GNU General Public License, version 3 or later (GPLv3+).