This guide will help you setup docker locally for building and testing services behind the AWS CDE firewall by bridging your VPN connection to Docker.
brew install docker
Edit your config list file:
~/Library/Group\ Containers/group.com.docker/cni/10-default.conflist
Change all the subnet, gateway, and nameserver values from 10.1.0.1
to an adjacent subnet within your private VPC. e.g. 100.200.0.1
for me docker was colliding with an existing private subnet.
Edit your docker daemon config file:
~/.docker/daemon.json
Add a new dns block containing the AWS DNS servers, and public fall backs for when you're off the VPN:
"dns": [
"10.100.x.xxx",
"10.100.x.xxx",
"8.8.8.8',
"1.1.1.1"
],
Connect to the VPN and reboot docker to load the new configs. If you need VPN access follow this procedure to request access.