diff --git a/services/docker.go b/services/docker.go index 4f505f1..6b99dc8 100644 --- a/services/docker.go +++ b/services/docker.go @@ -192,7 +192,7 @@ func CreateInstance(session *Session, dindImage string) (*Instance, error) { var pidsLimit = int64(1000) if envLimit := os.Getenv("MAX_PROCESSES"); envLimit != "" { - if i, err := strconv.Atoi(envLimit); err != nil { + if i, err := strconv.Atoi(envLimit); err == nil { pidsLimit = int64(i) } }