Make weaveutil container-addrs observe $PROCFS
This commit is contained in:
1 parent
7ea3299dc6
commit
4cee647e73
4 files changed
+15
-11
No files matched your search
@@ -7,7 +7,6 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -17,10 +16,7 @@ func dockerTLSArgs(args []string) error {
|
||||
if len(args) > 0 {
|
||||
cmdUsage("docker-tls-args", "")
|
||||
}
|
||||
procRoot := os.Getenv("PROCFS")
|
||||
if procRoot == "" {
|
||||
procRoot = "/proc"
|
||||
}
|
||||
procRoot := procDir()
|
||||
dirEntries, err := ioutil.ReadDir(procRoot)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user