Docker Community Forums

Share and learn in the Docker community.

Bridge default network changed to 10.x network and gateway can't connect from container to host ip

Hi, have modified the docker daemon to use a different default bridge network address
docker daemon --bip=10.nn.nn.nn/21

but now, from containers running on the bridge, I cannot ping or get to the host address.

The scenario, is multiple applications running on the same host. DNS for one of the named services running in docker resolves to the host address. Other running containers are using DNS to connect to this service also. When the application container is trying to connect to the named service through DNS that happens to be running on the same docker machine, it cannot connect.

can be duplicated by
bin/bash into running container
host machine (docker host machine) ip: a.b.c.d
ping a.b.c.d - no response