code: func validateHealthCheck(hc *api.HealthConfig) error {
  	if hc == nil {
  		return nil
  	}
  
  	if hc.Interval != nil {
  		interval, err := gogotypes.DurationFromProto(hc.Interval)
  		if err != nil {
  			return err
  		}
  		if interval != 0 && interval < minimumDuration {
  			return status.Errorf(codes.InvalidArgument, "ContainerSpec: Interval in HealthConfig cannot be less than %s", minimumDuration)
  		}
  	}
  
  	if hc.Timeout != nil {
  		timeout, err := gogotypes.DurationFromProto(hc.Timeout)
  		if err != nil {
  			return err
  		}
  		if timeout != 0 && timeout < minimumDuration {
  			return status.Errorf(codes.InvalidArgument, "ContainerSpec: Timeout in HealthConfig cannot be less than %s", minimumDuration)
  		}
  	}
  
  	if hc.StartPeriod != nil {
  		sp, err := gogotypes.DurationFromProto(hc.StartPeriod)
  		if err != nil {
  			return err
  		}
  		if sp != 0 && sp < minimumDuration {
  			return status.Errorf(codes.InvalidArgument, "ContainerSpec: StartPeriod in HealthConfig cannot be less than %s", minimumDuration)
  		}
  	}
  
  	if hc.Retries < 0 {
  		return status.Errorf(codes.InvalidArgument, "ContainerSpec: Retries in HealthConfig cannot be negative")
  	}
  
  	return nil
  }
docs: // validateHealthCheck validates configs about container's health check