Browse Source

Update parseLxcInfo to comply with new lxc1.0 format

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Guillaume J. Charmes 11 năm trước cách đây
mục cha
commit
fd0737df2c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      execdriver/lxc/info.go

+ 1 - 1
execdriver/lxc/info.go

@@ -36,7 +36,7 @@ func parseLxcInfo(raw string) (*lxcInfo, error) {
 		if len(parts) < 2 {
 			continue
 		}
-		switch strings.TrimSpace(parts[0]) {
+		switch strings.ToLower(strings.TrimSpace(parts[0])) {
 		case "state":
 			info.Running = strings.TrimSpace(parts[1]) == "RUNNING"
 		case "pid":