mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 10:00:01 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			248 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			248 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package env
 | |
| 
 | |
| import (
 | |
| 	"github.com/containers/podman/v5/pkg/rootless"
 | |
| 	"github.com/containers/podman/v5/pkg/util"
 | |
| )
 | |
| 
 | |
| func getRuntimeDir() (string, error) {
 | |
| 	if !rootless.IsRootless() {
 | |
| 		return "/run", nil
 | |
| 	}
 | |
| 	return util.GetRootlessRuntimeDir()
 | |
| }
 | 
