mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-09-05 21:31:37 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user