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:
1 parent
c42400de4f
commit
7c5dda353d
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user