From 7c5dda353dd98bc5600ab001860af5c815a483eb Mon Sep 17 00:00:00 2001 From: Marc CARRE Date: Thu, 13 Apr 2017 12:03:17 +0100 Subject: [PATCH] Only list active containers. Previously was using `docker.ListContainersOptions{All: true}`, which is the equivalent of `docker ps -a`, and is not what we want here. --- prog/weaveutil/addrs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/weaveutil/addrs.go b/prog/weaveutil/addrs.go index 152fdc4e..593abdce 100644 --- a/prog/weaveutil/addrs.go +++ b/prog/weaveutil/addrs.go @@ -30,7 +30,7 @@ func containerAddrs(args []string) error { containerArgs := []string{} for _, cid := range args[1:] { 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 { return err }