Issues with Network connectivity with Docker -


i facing issues configuring network in docker. details given below.

host machine:- ubuntu server 14.04 lts 64-bit. ip subnet: 10.0.0.0/16, ip address: 10.0.0.206/16 , default gateway: 10.0.0.1/16. machine having docker installed (version 1.6.2 build 7c8fca2) , has default ip in docker0 bridge of 172.17.42.1/16. however, container has received ip 172.17.0.1. problems follows.

  1. my host machine , docker container able connect each other , internet other machines not able connect docker container.

  2. changing docker0 bridge ip temporary , reverts 172.17.42.1/16 once every reboot.

  3. i cannot set static ip address of container changes automatically @ every exit or if host rebooted. checked container's network config file /etc/network/interfaces doing changes in file has no effect eth0 interface.

in short, not able connect container outer world (from other physical machines) when have configured networking interface of other machines connect docker host , container.

how can fix connection problem?

by default, docker containers can not accessed other host. , ip address allocated docker.

you can use "--net=host" when run containers, container share same ip address host node. , container available other node.

docker run -it --net=host ubuntu bash 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -