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


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

--

Legend:

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

    v11 v12  
    4040And 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.
    4141
    42 To find the ip address for the shared docker interface, run "ip a | grep docker0:" on the host and look for the ip address.
     42To find the ip address for the shared docker interface, run "ip a | grep inet | grep docker0" on the host and look for the ip address.
     43
     44Assuming docker0 has the default ip "172.17.42.1", you should run or create your docker containers by binding the specific container ports to the docker host interface as follows:
     45{{{
     46... -p 172.17.42.1:<port>:<port> ...
     47}}}
     48This allows containers to communicate over the docker0 interface while not being accessible from another, possible public, interface.
    4349
    4450This approach has the following advantages: