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-13 18:17:12 -07:00
parent 4de6810be9
commit adbe3096e8
8 changed files with 28 additions and 6 deletions
+11
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")
}