diff --git a/integration-cli/docker_cli_run_test.go b/integration-cli/docker_cli_run_test.go index 95c3651c43..10e8a5e9a4 100644 --- a/integration-cli/docker_cli_run_test.go +++ b/integration-cli/docker_cli_run_test.go @@ -3213,8 +3213,8 @@ func (s *DockerSuite) TestMountIntoProc(c *check.C) { func (s *DockerSuite) TestMountIntoSys(c *check.C) { testRequires(c, NativeExecDriver) defer deleteAllContainers() - code, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/", "busybox", "true")) - if err == nil || code == 0 { - c.Fatal("container should not be able to mount into /sys") + _, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/fs/cgroup", "busybox", "true")) + if err != nil { + c.Fatal("container should be able to mount into /sys/fs/cgroup") } }