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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user