mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 18:08:51 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			682 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			682 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package config
 | |
| 
 | |
| import (
 | |
| 	"os"
 | |
| )
 | |
| 
 | |
| // podman remote clients on darwin 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 rootlessConfigPath()
 | |
| }
 | |
| 
 | |
| func ifRootlessConfigPath() (string, error) {
 | |
| 	return rootlessConfigPath()
 | |
| }
 | |
| 
 | |
| var defaultHelperBinariesDir = []string{
 | |
| 	// Homebrew install paths
 | |
| 	"/usr/local/opt/podman/libexec",
 | |
| 	"/opt/homebrew/bin",
 | |
| 	"/opt/homebrew/opt/podman/libexec",
 | |
| 	"/usr/local/bin",
 | |
| 	// default paths
 | |
| 	"/usr/local/libexec/podman",
 | |
| 	"/usr/local/lib/podman",
 | |
| 	"/usr/libexec/podman",
 | |
| 	"/usr/lib/podman",
 | |
| }
 | 
