mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix typo
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
parent
7f15aee70e
commit
1f28387d21
1 changed files with 2 additions and 3 deletions
|
@ -17,7 +17,7 @@ create network namespaces and allocate interfaces for containers to use.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a network for containers to join.
|
// Create a network for containers to join.
|
||||||
// NewNetwork accepts Variadic optional arguments that libnetwork and Drivers can make of
|
// NewNetwork accepts Variadic optional arguments that libnetwork and Drivers can make use of
|
||||||
network, err := controller.NewNetwork(networkType, "network1")
|
network, err := controller.NewNetwork(networkType, "network1")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
@ -32,8 +32,7 @@ create network namespaces and allocate interfaces for containers to use.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// A container can join the endpoint by providing the container ID to the join
|
// A container can join the endpoint by providing the container ID to the join api.
|
||||||
// api.
|
|
||||||
// Join accepts Variadic arguments which will be made use of by libnetwork and Drivers
|
// Join accepts Variadic arguments which will be made use of by libnetwork and Drivers
|
||||||
err = ep.Join("container1",
|
err = ep.Join("container1",
|
||||||
libnetwork.JoinOptionHostname("test"),
|
libnetwork.JoinOptionHostname("test"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue