We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e36c55d + 499550e commit a26e6b3Copy full SHA for a26e6b3
netshare/netshare.go
@@ -45,6 +45,7 @@ const (
45
EnvNfsVers = "NETSHARE_NFS_VERSION"
46
EnvTCP = "NETSHARE_TCP_ENABLED"
47
EnvTCPAddr = "NETSHARE_TCP_ADDR"
48
+ EnvSocketName = "NETSHARE_SOCKET_NAME"
49
PluginAlias = "netshare"
50
NetshareHelp = `
51
docker-volume-netshare (NFS V3/4, AWS EFS and CIFS Volume Driver Plugin)
@@ -238,7 +239,11 @@ func start(dt drivers.DriverType, driver volume.Driver) {
238
239
}
240
fmt.Println(h.ServeTCP(dt.String(), addr, nil))
241
} else {
- fmt.Println(h.ServeUnix(dt.String(), syscall.Getgid()))
242
+ socketName := os.Getenv(EnvSocketName)
243
+ if socketName == "" {
244
+ socketName = dt.String()
245
+ }
246
+ fmt.Println(h.ServeUnix(socketName, syscall.Getgid()))
247
248
249
0 commit comments