|
@@ -615,6 +615,11 @@ func (s *DockerSuite) TestRunWithMemoryReservationInvalid(c *check.C) {
|
|
|
c.Assert(err, check.NotNil)
|
|
|
expected := "Minimum memory limit should be larger than memory reservation limit"
|
|
|
c.Assert(strings.TrimSpace(out), checker.Contains, expected, check.Commentf("run container should fail with invalid memory reservation"))
|
|
|
+
|
|
|
+ out, _, err = dockerCmdWithError("run", "--memory-reservation", "1k", "busybox", "true")
|
|
|
+ c.Assert(err, check.NotNil)
|
|
|
+ expected = "Minimum memory reservation allowed is 4MB"
|
|
|
+ c.Assert(strings.TrimSpace(out), checker.Contains, expected, check.Commentf("run container should fail with invalid memory reservation"))
|
|
|
}
|
|
|
|
|
|
func (s *DockerSuite) TestStopContainerSignal(c *check.C) {
|