Skip to content

josephbharrison/mac-docker-net

Repository files navigation

Mac Docker Networking

Container network and IP access on MacOS

Features

  • 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

Prerequisites

Installation (one-time setup)

  1. Install Prerequisites
brew install colima tunnelblick
  1. Update Colima configuration
# ~/.colima/default/colima.yaml
docker:
  default-address-pools:
    - base: 172.16.32.0/20
      size: 24
  experimental: false
  1. Start Colima
colima start
  1. Build proxy and openvpn servers
./docker-net.sh -b
  1. Start the proxy and openvpn servers
./docker-net.sh -s
  1. Add the generated openvpn profile to tunnelblick: compose/docker-for-mac.ovpn

Usage

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)

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published