docker network in bridge mode

I have planing to install docker but as we know default docker networking is in NAT mode so it has own IP on docker0 interface which is 172.17.42.x.

I want to reconfigure networking in full bridge mode so all my container get IP address from my LAN Wireless Router I am following this article and gave it a try, but it didn’t work.

  • Docker Volume vs AWS s3
  • Error building syntaxnet using Dockerfile
  • Docker impossible setup sysctl parameter in container RHEL 6.6
  • Dockerfile with multiple images
  • Do I have to enable firewall on docker container?
  • How to overwrite a configuration file with Docker
  • I have a question:

    How container will get IP address? Or do I need to manually assign Local LAN IP address to docker container?

    Or is there any best method to connect container to Local LAN do other people can access docker container?


    If I add a bridge interface br0 and attach it to eth0, I won’t able to ping outside. I am using brctl command to attach br0 to eth0.

  • What is the “only” argument of pm2-docker for?
  • How To Create And Start Docker Container node, detached mode using docker-java
  • Alternating provisioning with Vagrant
  • Running composer install in docker container
  • docker-compose link container of another docker-compose
  • Working on a Dockerfile in order to build a WordPress image
  • One Solution collect form web for “docker network in bridge mode”

    The approach you might take is to create a virtual bridge, on which you put the external interface of your host and to which you have to attach your docker containers.
    Then, run your container in privileged mode and run dhclient in it, so that it asks your DHCP for an IP address. In this way your container should get dynamically its IP address as every normal host does.

    PS Remember to run them with --net=none.

    Here you can find a reference from which you can draw your inspiration:

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.