|
@@ -485,6 +485,17 @@ func (s *DockerSuite) TestExecOnReadonlyContainer(c *check.C) {
|
|
dockerCmd(c, "exec", "parent", "true")
|
|
dockerCmd(c, "exec", "parent", "true")
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (s *DockerSuite) TestExecUlimits(c *check.C) {
|
|
|
|
+ testRequires(c, DaemonIsLinux)
|
|
|
|
+ name := "testexeculimits"
|
|
|
|
+ runSleepingContainer(c, "-d", "--ulimit", "nproc=21", "--name", name)
|
|
|
|
+ c.Assert(waitRun(name), checker.IsNil)
|
|
|
|
+
|
|
|
|
+ out, _, err := dockerCmdWithError("exec", name, "sh", "-c", "ulimit -p")
|
|
|
|
+ c.Assert(err, checker.IsNil)
|
|
|
|
+ c.Assert(strings.TrimSpace(out), checker.Equals, "21")
|
|
|
|
+}
|
|
|
|
+
|
|
// #15750
|
|
// #15750
|
|
func (s *DockerSuite) TestExecStartFails(c *check.C) {
|
|
func (s *DockerSuite) TestExecStartFails(c *check.C) {
|
|
// TODO Windows CI. This test should be portable. Figure out why it fails
|
|
// TODO Windows CI. This test should be portable. Figure out why it fails
|