Use netlink instead of shelling out to weave ps
This commit is contained in:
1 parent
f37eb4b77d
commit
65c48707f6
10 files changed
+183
-64
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user