Skip to content

Instantly share code, notes, and snippets.

@kevinhooke
Last active January 31, 2020 23:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save kevinhooke/d2eabbd402741ae728ef6ab2985dfddd to your computer and use it in GitHub Desktop.
Save kevinhooke/d2eabbd402741ae728ef6ab2985dfddd to your computer and use it in GitHub Desktop.
Using Docker on Windows with Cisco AnyConnect VPN in non-split tunnel mode
Start docker before connecting vpn (to get local ip, eg 192.168.99.100)
After start, connect to VPN, then follow next steps:
From: https://github.com/boot2docker/boot2docker/issues/628
Add port forwarding to the NAT'd adapter in VirtualBox, add:
docker: host=127.0.0.1 port=2367 guest ip=[blank] guest port=2376
container port: 127.0.0.1, port=[the container exposed port to forward] guest ip=[blank], guest port[container port]
From https://www.iancollington.com/docker-and-cisco-anyconnect-vpn/
In Docker Quickstart Terminal, to point to port forwarded Docker, and to turn off checking of SSL certs:
export DOCKER_HOST=tcp://127.0.0.1:2376
alias docker='docker --tlsverify=false'
Alternatively, create a new docker-machine with tlsverify turned off:
docker-machine create -d virtualbox --engine-env DOCKER_TLS=no default
export DOCKER_HOST=tcp://127.0.0.1:2376
docker-machine regenerate-certs
- now you should be able to run docker commands without adding the --tlsverify=false
@mithuns
Copy link

mithuns commented Apr 14, 2018

Running pre-create checks...
Error with pre-create check: "This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-check)"

Any ideas on how to do this for my scenario ? Any help is greatly appreciated.

@akshatsharma0106
Copy link

Try enabling virtualization through BIOS

@kevinhooke
Copy link
Author

Try enabling virtualization through BIOS

Regardless of whether h/w virtualization is enabled in BIOS, you can't run Hyper-V and start a VirtualBox VM with a 64bit guest running at the same time. @mithuns search for 'windows hyper-v running VirtualBox at the same time' or similar terms and you'll find solutions. Easiest answer, use one or the other, but not both at the same time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment