Use netlink instead of shelling out to weave ps

This commit is contained in:
Adam Harrison committed 2016-02-04 12:51:18 +00:00
1 parent f37eb4b77d
commit 65c48707f6
10 files changed
+183 -64

No files matched your search

+6
View File
@@ -14,6 +14,7 @@ import (
var (
version = "(unreleased version)"
defaultDockerHost = "unix:///var/run/docker.sock"
defaultProcPath = "/proc"
)
func main() {
@@ -68,6 +69,11 @@ func main() {
c.DockerHost = dockerHost
}
c.ProcPath = defaultProcPath
if procPath := os.Getenv("PROCFS"); procPath != "" {
c.ProcPath = procPath
}
p, err := proxy.NewProxy(c)
if err != nil {
Log.Fatalf("Could not start proxy: %s", err)