add default runc root path

This commit is contained in:
Bradley Cicenas 2017-06-09 21:35:28 +00:00
parent 1233ff0ead
commit 446708e456
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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)