Docker Community Forums

Share and learn in the Docker community.

How can I pass the --bip argument (change bridge network ip)

(Comavn) #1

Expected behavior

Networks in the range should be accessible from the docker xhyve vm and from docker containers, for instance by passing the --bip argument to the docker daemon in order to change the default range.

Actual behavior

The default range of the default docker bridge is, and cannot be changed in Docker for Mac Version 1.11.2-beta15 (build: 9168). Because of this, there’s no way to reach servers in this range, either for pulling images (our private docker registry lives there) or for accessing servers there from containers running on my macbook.


This is basically the same problem as Customizing subnet of bridge network , however the solution there is to use pinata to fix the configuration. However, pinata is nowhere to be found anymore, and it’s options have not been moved to the gui.

Steps to reproduce the behavior

  1. Install Docker Beta for Mac Version 1.11.2-beta15 (build: 9168)
    2a. Try to pull an image from a docker registry in the range:
    % docker pull
    Pulling repository
    Error while pulling image: Get dial tcp getsockopt: no route to host


2b. Try to access a server in the range from a container:
% docker run --rm busybox traceroute
traceroute to (, 30 hops max, 46 byte packets
1 86e41be6f829 ( 3009.175 ms !H 3012.591 ms !H 3004.078 ms !H
(!H is host unreachable)

(Brian Romanko) #2

According to this Github Issue you can specify bip by editing the daemon config.

There is no UI for this yet, but you can change it.

In ~/Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux is a git database.
The daemon configuration is under etc/docker/daemon.json, which just uses the config from:

You’d want to set bip to whatever subnet you like, but note that you need to use a real IP, not a .0 one… for instance…, not

You need to change the config and then do a git commit, docker should restart automatically at that point (if not, restart it) with the new configuration.