syscontainer-tools: change default cgroup path
Signed-off-by: zhangsong34 <zhangsong34@huawei.com>
This commit is contained in:
parent
60734def8c
commit
fb84bfb383
@ -151,8 +151,8 @@ func (c *Container) GetCgroupPath() (string, error) {
|
|||||||
cgroupPath = cgroupPath[1 : len(cgroupPath)-1]
|
cgroupPath = cgroupPath[1 : len(cgroupPath)-1]
|
||||||
}
|
}
|
||||||
if cgroupPath == "" {
|
if cgroupPath == "" {
|
||||||
// by default, the cgroup path is "/lxc/<id>"
|
// by default, the cgroup path is "/isulad/<id>"
|
||||||
cgroupPath = "/lxc"
|
cgroupPath = "/isulad"
|
||||||
}
|
}
|
||||||
cgroupPath = filepath.Join(cgroupPath, c.containerID)
|
cgroupPath = filepath.Join(cgroupPath, c.containerID)
|
||||||
return cgroupPath, nil
|
return cgroupPath, nil
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
#Basic Information
|
#Basic Information
|
||||||
Name: syscontainer-tools
|
Name: syscontainer-tools
|
||||||
Version: v0.9
|
Version: v0.9
|
||||||
Release: 35
|
Release: 36
|
||||||
Summary: syscontainer tools for IT, work with iSulad
|
Summary: syscontainer tools for IT, work with iSulad
|
||||||
License: Mulan PSL v1
|
License: Mulan PSL v1
|
||||||
URL: https://gitee.com/src-openeuler/syscontainer-tools
|
URL: https://gitee.com/src-openeuler/syscontainer-tools
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user