github.com/wtrep/tgf@v1.18.8/docker_unix.go (about) 1 // +build !windows 2 3 package main 4 5 import ( 6 "fmt" 7 "os" 8 "syscall" 9 ) 10 11 const dockerSocketMountPattern = "%[1]s:%[1]s" 12 13 func getDockerGroup() string { 14 s := must(os.Stat(dockerSocketFile)).(os.FileInfo) 15 return fmt.Sprintf("%v", s.Sys().(*syscall.Stat_t).Gid) 16 }