diff --git a/connector/runc.go b/connector/runc.go index 7121333..28db9d6 100644 --- a/connector/runc.go +++ b/connector/runc.go @@ -195,7 +195,7 @@ func readRuncOpts() (RuncOpts, error) { // read runc root path root := os.Getenv("RUNC_ROOT") if root == "" { - return opts, fmt.Errorf("RUNC_ROOT not set") + root = "/run/runc" } abs, err := filepath.Abs(root) if err != nil { diff --git a/main.go b/main.go index 1a81cfc..1b01fea 100644 --- a/main.go +++ b/main.go @@ -110,7 +110,7 @@ func Shutdown() { func validConnector(s string) { if _, ok := enabledConnectors[s]; !ok { - fmt.Printf("invalid connector type: %s", s) + fmt.Printf("invalid connector type: %s\n", s) var connectors []string for k, _ := range enabledConnectors { connectors = append(connectors, k)