Skip to content

Instantly share code, notes, and snippets.

@xshyamx
Created June 21, 2016 09:21
Show Gist options
  • Save xshyamx/86d2b4fc134479250bd3d52d3be9c2ae to your computer and use it in GitHub Desktop.
Save xshyamx/86d2b4fc134479250bd3d52d3be9c2ae to your computer and use it in GitHub Desktop.
Create docker machine behind a proxy

To create a docker machine VM which connects via a proxy running on the host machine on port 9090

docker-machine create -d virtualbox \
               --engine-env HTTP_PROXY=http://10.0.2.2:9090 \
               --engine-env HTTPS_PROXY=http://10.0.2.2:9090 \
               dm-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment