Docker Community Forums

Share and learn in the Docker community.

Customize the docker0 bridge in Mac OS X


(Sgudavalli) #1

Hi,

Can someone give me pointers how to set up either a new bridge interface or customize existing default docker0 bridge interface in Mac OS X

Mac OS X 10.11.3.
Docker version: 1.10.3

Regards
Shiv


(Modernix) #2

I used this method to create my new bridge - docker network create --driver bridge -o “com.docker.network.driver.mtu”=“1500” -o “com.docker.network.bridge.name”=“mybridge” -o “com.docker.network.bridge.enable_icc”=“true” -o “com.docker.network.bridge.enable_ip_masquerade”=“true” -o “com.docker.network.bridge.host_binding_ipv4”=“0.0.0.0” mybridge

If you plan to use with docker-compose at these lines:
networks:
default:
external:
name: mybridge