mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
update link comments
Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
This commit is contained in:
parent
e9bef66021
commit
c52a373bc8
2 changed files with 1 additions and 2 deletions
|
@ -167,7 +167,7 @@ func (daemon *Daemon) buildSandboxOptions(container *container.Container, n libn
|
||||||
libnetwork.OptionPortMapping(pbList),
|
libnetwork.OptionPortMapping(pbList),
|
||||||
libnetwork.OptionExposedPorts(exposeList))
|
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
|
// return if this call to build join options is not for default bridge network
|
||||||
if n.Name() != defaultNetName {
|
if n.Name() != defaultNetName {
|
||||||
return sboxOptions, nil
|
return sboxOptions, nil
|
||||||
|
|
|
@ -977,7 +977,6 @@ func (daemon *Daemon) registerLinks(container *container.Container, hostConfig *
|
||||||
}
|
}
|
||||||
child, err := daemon.GetContainer(name)
|
child, err := daemon.GetContainer(name)
|
||||||
if err != nil {
|
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)
|
return fmt.Errorf("Could not get container for %s", name)
|
||||||
}
|
}
|
||||||
for child.HostConfig.NetworkMode.IsContainer() {
|
for child.HostConfig.NetworkMode.IsContainer() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue