mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 17:07:20 +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()
 | 
						|
}
 |