code: func (daemon *Daemon) verifyContainerSettings(platform string, hostConfig *containertypes.HostConfig, config *containertypes.Config, update bool) (warnings []string, err error) {
  	// First perform verification of settings common across all platforms.
  	if err = validateContainerConfig(config, platform); err != nil {
  		return warnings, err
  	}
  	if err := validateHostConfig(hostConfig, platform); err != nil {
  		return warnings, err
  	}
  
  	// Now do platform-specific verification
  	warnings, err = verifyPlatformContainerSettings(daemon, hostConfig, update)
  	for _, w := range warnings {
  		logrus.Warn(w)
  	}
  	return warnings, err
  }
docs: // verifyContainerSettings performs validation of the hostconfig and config
  // structures.