Skip to content

Instantly share code, notes, and snippets.

@fernaspiazu
Last active June 1, 2016 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernaspiazu/f9118c497ab1330c1618 to your computer and use it in GitHub Desktop.
Save fernaspiazu/f9118c497ab1330c1618 to your computer and use it in GitHub Desktop.
Create Docker-machine behind proxy with cntlm
#!/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