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.

Further information

Assuming you already have the http_proxy and 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+).

Sanger Institute Contributors

Previous contributors

Photo of Dr Joshua C. Randall

Dr Joshua C. Randall

Senior Scientific Manager