Service discovery

Add a minimal service discover support using service names or
service names qualified with network name. This is achieved
by populating the container's /etc/hosts file record with the
appropriate entries

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
Jana Radhakrishnan
2015-06-19 00:40:37 -07:00
parent d59cc6962e
commit 0741d68fd7
3 changed files with 100 additions and 0 deletions
+1
View File
@@ -284,6 +284,7 @@ func (c *controller) addNetwork(n *network) error {
}
n.Lock()
n.svcRecords = svcMap{}
n.driver = dd.driver
d := n.driver
n.Unlock()