code: func validateQoS(hc *container.HostConfig) error {
  	// We may not be passed a host config, such as in the case of docker commit
  	if hc == nil {
  		return nil
  	}
  
  	if hc.IOMaximumBandwidth != 0 {
  		return fmt.Errorf("Invalid QoS settings: %s does not support configuration of maximum bandwidth", runtime.GOOS)
  	}
  
  	if hc.IOMaximumIOps != 0 {
  		return fmt.Errorf("Invalid QoS settings: %s does not support configuration of maximum IOPs", runtime.GOOS)
  	}
  	return nil
  }
docs: // validateQoS performs platform specific validation of the QoS settings