From c52a373bc8c914f41b0451964e15c007f2754436 Mon Sep 17 00:00:00 2001 From: Wen Cheng Ma Date: Fri, 11 Mar 2016 18:13:37 +0800 Subject: [PATCH] update link comments Signed-off-by: Wen Cheng Ma --- daemon/container_operations.go | 2 +- daemon/daemon_unix.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/container_operations.go b/daemon/container_operations.go index eeabbd93c1..95aae69db2 100644 --- a/daemon/container_operations.go +++ b/daemon/container_operations.go @@ -167,7 +167,7 @@ func (daemon *Daemon) buildSandboxOptions(container *container.Container, n libn libnetwork.OptionPortMapping(pbList), libnetwork.OptionExposedPorts(exposeList)) - // Link feature is supported only for the default bridge network. + // Legacy Link feature is supported only for the default bridge network. // return if this call to build join options is not for default bridge network if n.Name() != defaultNetName { return sboxOptions, nil diff --git a/daemon/daemon_unix.go b/daemon/daemon_unix.go index dbe202ceb3..b6d840d222 100644 --- a/daemon/daemon_unix.go +++ b/daemon/daemon_unix.go @@ -977,7 +977,6 @@ func (daemon *Daemon) registerLinks(container *container.Container, hostConfig * } child, err := daemon.GetContainer(name) if err != nil { - //An error from daemon.GetContainer() means this name could not be found return fmt.Errorf("Could not get container for %s", name) } for child.HostConfig.NetworkMode.IsContainer() {