Changes between Version 11 and Version 12 of SystemAdministration/Hosts/beta-vlo-clarin.esc.rzg.mpg.de
- Timestamp:
- 08/31/15 12:54:48 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SystemAdministration/Hosts/beta-vlo-clarin.esc.rzg.mpg.de
v11 v12 40 40 And 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 41 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. 42 To 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 44 Assuming 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 }}} 48 This allows containers to communicate over the docker0 interface while not being accessible from another, possible public, interface. 43 49 44 50 This approach has the following advantages: