Last active
June 1, 2016 08:27
-
-
Save fernaspiazu/f9118c497ab1330c1618 to your computer and use it in GitHub Desktop.
Create Docker-machine behind proxy with cntlm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VM=company | |
HOST=<cntlm_or_proxy_host> | |
PORT=<cntlm_or_proxy_port> | |
docker-machine create \ | |
--engine-env HTTP_PROXY=http://$HOST:$PORT \ | |
--engine-env HTTPS_PROXY=http://$HOST:$PORT \ | |
-d virtualbox \ | |
--virtualbox-memory 2048 \ | |
--virtualbox-disk-size 102400 \ | |
$VM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment