diff --git a/daemon/daemon_unix.go b/daemon/daemon_unix.go index 9e231c5158..86eb5ad5ce 100644 --- a/daemon/daemon_unix.go +++ b/daemon/daemon_unix.go @@ -525,7 +525,7 @@ func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes. warnings = append(warnings, w...) if hostConfig.ShmSize < 0 { - return warnings, fmt.Errorf("SHM size must be greater then 0") + return warnings, fmt.Errorf("SHM size must be greater than 0") } if hostConfig.OomScoreAdj < -1000 || hostConfig.OomScoreAdj > 1000 { diff --git a/integration-cli/docker_api_containers_test.go b/integration-cli/docker_api_containers_test.go index 3368af345b..57a35ba85f 100644 --- a/integration-cli/docker_api_containers_test.go +++ b/integration-cli/docker_api_containers_test.go @@ -1462,7 +1462,7 @@ func (s *DockerSuite) TestPostContainersCreateShmSizeNegative(c *check.C) { status, body, err := sockRequest("POST", "/containers/create", config) c.Assert(err, check.IsNil) c.Assert(status, check.Equals, http.StatusInternalServerError) - c.Assert(string(body), checker.Contains, "SHM size must be greater then 0") + c.Assert(string(body), checker.Contains, "SHM size must be greater than 0") } func (s *DockerSuite) TestPostContainersCreateShmSizeHostConfigOmitted(c *check.C) {