public Builder setRetries(int retries) {
      this.retries = retries;
      return this;
    }
Sets the number of times to retry the healthcheck before the container is considered to be
unhealthy.

@param retries the number of retries before the container is considered to be unhealthy
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/DockerHealthCheck.java