Skip to content

Instantly share code, notes, and snippets.

@tknerr
Created May 29, 2015 14:22
Show Gist options
  • Save tknerr/06247ce7ec1121566166 to your computer and use it in GitHub Desktop.
Save tknerr/06247ce7ec1121566166 to your computer and use it in GitHub Desktop.
Set up port forwarding of boot2docker via localhost
:: set up port forwarding to make the docker host work via our weird VPN, too
echo port-forwarding docker port 2376 via localhost...
VBoxManage controlvm "boot2docker-vm" natpf1 delete "tcp-port2376" >NUL 2>&1
VBoxManage controlvm "boot2docker-vm" natpf1 "tcp-port2376,tcp,,2376,,2376"
set DOCKER_HOST=tcp://127.0.0.1:2376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment