AnyConnect breaks docker networks in a weird way and they stay broken even after you exit the VPN (even if you stop vpnagentd afterwards). The workaround is to stop docker, clear all its networks and bridges and only then start the AnyConnect VPN. You can start docker after the VPN session ends and it will re-create all necessary stuff.
- In this guide, we are using Cisco AnyConnect version 4.7 and it has already been downloaded. Anyconnect-linux64-4.7.01076-predeploy-k9.tar.gz Extract Cisco AnyConnect Tarball. Once you have Cisco AnyConnect client tarball in place, extract it as follows; tar xzf anyconnect-linux64-4.7.01076-predeploy-k9.tar.gz.
- Dec 16, 2019 Install Cisco AnyConnect on Ubuntu / Debian / Fedora Connect To VPN Server with Cisco AnyConnect from Linux Terminal If you used the installation method covered in our guide, the vpn script used to connect, disconnect, and check the status of VPN is located in the directory below.
Boot2Docker is an OS X app used to create a virtual environment for docker. Docker only runs on Linux, so Boot2Docker installs a VM on your mac (using virtual box) and a client that runs locally to communicate with the VM.
I downloaded this and followed instructions. You basically just install it with a few clicks. Once installed, boot2docker will be in your application folder. You click on it and it in the applications folder and you are ready to go. It kicks off its own terminal window. Since I use iTerm2, I just start it like so:
boot2docker up
This will give you a few environment variables to export:
There is another project called KiteMatic I dabbled with, but was happy enough with Boot2Docker that I didn’t bother pursuing it.
Cisco AnyConnect VPN problem:
There is an issue with using boot2docker and Cisco AnyConnect VPN. Basically its this: You can’t run any docker commands because AnyConnect doesn’t allow any split tunneling.
What’s worse, is that after terminating a VPC session with AnyConnect (disconnecting), I have to reestablish a static route so that I can talk to boot2docker again: