It is the Docker default networking mode which will enable the connectivity to the other interfaces of the host machine as well as among containers. In host and none mode are not configured directly but default bridge network can be configured as well as create your own user-defined bridge networks. Inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0ģ: lxcbr0: mtu 1500 qdisc noqueue state UNKNOWN group exitģ: lxcbr0: mtu 1500 qdisc noqueue state UNKNOWN group default The container’s host name will match the host name on the host system # docker run -it -net=host ubuntu:14.04 hostnameĮven the IP configuration is same as the host system's IPĢ: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 In this mode container will share the host’s network stack and all interfaces from the host will be available to the container. # docker inspect 66308c6686be | grep -i ipaddr TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 # docker run -it -network=none ubuntu:14.04 ifconfig It does have the loopback address and can be used for running batch jobs. This mode will not configure any IP for the container and doesn’t have any access to the external network as well as for other containers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |