Changes between Version 10 and Version 11 of SystemAdministration/Hosts/beta-vlo-clarin.esc.rzg.mpg.de


Ignore:
Timestamp:
08/31/15 12:10:22 (9 years ago)
Author:
Willem Elbers
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SystemAdministration/Hosts/beta-vlo-clarin.esc.rzg.mpg.de

    v10 v11  
    3838
    3939
    40 And alternative is using the ip address of the shared docker interface. The docker daemon will create a virtual network interface in the host and one for each container. Each container interface is linked to this host interface and therefore all containers have access to each other via the ip of this host interface.
     40And alternative is using the ip address of the shared docker interface (docker0). The docker daemon will create a virtual network interface in the host and one for each container. Each container interface is linked to this host interface and therefore all containers have access to each other via the ip of this host interface.
     41
     42To find the ip address for the shared docker interface, run "ip a | grep docker0:" on the host and look for the ip address.
    4143
    4244This approach has the following advantages:
     
    4749- Containers must map ports to the host (you can limit this to the shared docker interface and not the public network interface)
    4850- Each container must expose unique port(s).
     51
     52If a firewall is running on the host, communication via the docker0 interface might be blocked.
     53
     54CentOS:
     55Check which zones are active:
     56{{{
     57firewall-cmd --get-active-zones
     58}}}
     59
     60If the docker0 interface is not associated with any zone, run the following to add the docker0 interface to the trusted zone (all communication allowed):
     61{{{
     62firewall-cmd --permanent --zone=trusted --change-interface=docker0
     63sudo firewall-cmd --reload
     64}}}
    4965
    5066For this setup we use the latter approach.