mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge branch 'master' of ssh://github.com/dotcloud/docker
This commit is contained in:
commit
f6b5cd77eb
1 changed files with 1 additions and 1 deletions
2
utils.go
2
utils.go
|
@ -445,7 +445,7 @@ func FindCgroupMountpoint(cgroupType string) (string, error) {
|
||||||
// cgroup /sys/fs/cgroup/devices cgroup rw,relatime,devices 0 0
|
// cgroup /sys/fs/cgroup/devices cgroup rw,relatime,devices 0 0
|
||||||
for _, line := range strings.Split(string(output), "\n") {
|
for _, line := range strings.Split(string(output), "\n") {
|
||||||
parts := strings.Split(line, " ")
|
parts := strings.Split(line, " ")
|
||||||
if parts[2] == "cgroup" {
|
if len(parts) == 6 && parts[2] == "cgroup" {
|
||||||
for _, opt := range strings.Split(parts[3], ",") {
|
for _, opt := range strings.Split(parts[3], ",") {
|
||||||
if opt == cgroupType {
|
if opt == cgroupType {
|
||||||
return parts[1], nil
|
return parts[1], nil
|
||||||
|
|
Loading…
Reference in a new issue