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.
This commit is contained in:
Marc CARRE committed 2017-04-13 12:12:49 +01:00
1 parent c42400de4f
commit 7c5dda353d
1 file changed
+1 -1
+1 -1
View File
@@ -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
}