func setWindowsEnv()

in main.go [131:153]


func setWindowsEnv(logDir, containerName, proxyEnvVar string) error {
	if logDir != "" {
		err := debug.SetLogFilePath(logDir, containerName)
		if err != nil {
			// Will include an error line if log-file-dir option is set for non-Windows in logs.
			// Will ignore and continue to log with journald.
			debug.SendEventsToLog(logger.DaemonName, err.Error(), debug.ERROR, 1)
			return err
		}
	}
	// proxyEnvVar will set the HTTP_PROXY and HTTPS_PROXY environment variables.
	if proxyEnvVar != "" {
		err := os.Setenv("HTTP_PROXY", proxyEnvVar)
		if err != nil {
			return err
		}
		err = os.Setenv("HTTPS_PROXY", proxyEnvVar)
		if err != nil {
			return err
		}
	}
	return nil
}