Container network and IP access on MacOS
- Container access by name or IP address
- Proxy and openvpn servers included
- Openvpn profile generation
- Apple silicon support
- Does not require
Docker Desktop for Mac
- Colima (Recommended)
- Tunnelblick or any OpenVPN client
- Install Prerequisites
brew install colima tunnelblick- Update Colima configuration
# ~/.colima/default/colima.yaml
docker:
default-address-pools:
- base: 172.16.32.0/20
size: 24
experimental: false- Start Colima
colima start- Build proxy and openvpn servers
./docker-net.sh -b- Start the proxy and openvpn servers
./docker-net.sh -s- Add the generated openvpn profile to tunnelblick:
compose/docker-for-mac.ovpn
Usage: docker-net.sh [OPTIONS]
Options:
-h This help message
-b Build openvpn and proxy
-s Start [default]
-x Stop
-H Update container entries in /etc/hosts
-l Update /etc/hosts entries and lo0 alias (not recommended)