mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 10:00:01 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			537 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			537 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package config
 | |
| 
 | |
| import "os"
 | |
| 
 | |
| // podman remote clients on windows cannot use unshare.isRootless() to determine the configuration file locations.
 | |
| func customConfigFile() (string, error) {
 | |
| 	if path, found := os.LookupEnv("CONTAINERS_CONF"); found {
 | |
| 		return path, nil
 | |
| 	}
 | |
| 	return os.Getenv("APPDATA") + "\\containers\\containers.conf", nil
 | |
| }
 | |
| 
 | |
| func ifRootlessConfigPath() (string, error) {
 | |
| 	return os.Getenv("APPDATA") + "\\containers\\containers.conf", nil
 | |
| }
 | |
| 
 | |
| var defaultHelperBinariesDir = []string{
 | |
| 	"C:\\Program Files\\RedHat\\Podman",
 | |
| }
 | 
