1
0
mirror of https://github.com/moby/moby.git synced 2025-12-09 10:01:25 +03:00

Add cpuset cpus support for docker

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby
2014-05-12 17:44:57 -07:00
parent 4de6810be9
commit adbe3096e8
8 changed files with 28 additions and 6 deletions

View File

@@ -768,3 +768,14 @@ func TestProcWritableInPrivilegedContainers(t *testing.T) {
logDone("run - proc writable in privileged container")
}
func TestRunWithCpuset(t *testing.T) {
cmd := exec.Command(dockerBinary, "run", "--cpuset", "0", "busybox", "true")
if code, err := runCommand(cmd); err != nil || code != 0 {
t.Fatalf("container should run successfuly with cpuset of 0: %s", err)
}
deleteAllContainers()
logDone("run - cpuset 0")
}