Merge pull request #2898 from weaveworks/weaveutil-allids-without-all
Only list active containers in weaveutil/addrs.go#containerAddrs
This commit is contained in:
commit
3cca0887c7
1 file changed
+1
-1
@@ -30,7 +30,7 @@ func containerAddrs(args []string) error {
|
|||||||
containerArgs := []string{}
|
containerArgs := []string{}
|
||||||
for _, cid := range args[1:] {
|
for _, cid := range args[1:] {
|
||||||
if cid == "weave:allids" { // expand to all container IDs
|
if cid == "weave:allids" { // expand to all container IDs
|
||||||
all, err := client.ListContainers(docker.ListContainersOptions{All: true})
|
all, err := client.ListContainers(docker.ListContainersOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user