소스 검색

Merge pull request #3854 from vieux/fix_tests

remove TestAllocateTCPPortLocalhost faillure in tests
Victor Vieux 11 년 전
부모
커밋
9481afa617
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      server.go

+ 1 - 1
server.go

@@ -1742,7 +1742,7 @@ func (srv *Server) ContainerCreate(job *engine.Job) engine.Status {
 		return engine.StatusErr
 	}
 	config := ContainerConfigFromJob(job)
-	if config.Memory != 0 && config.Memory < 524288 {
+	if config.Memory > 0 && config.Memory < 524288 {
 		job.Errorf("Minimum memory limit allowed is 512k")
 		return engine.StatusErr
 	}