forked from Ivasoft/device-mapping-manager
Run the socket handler in goroutine.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
4
main.go
4
main.go
@@ -73,9 +73,7 @@ func listenForMounts() {
|
||||
h := volume.NewHandler(d)
|
||||
u, _ := user.Lookup("root")
|
||||
gid, _ := strconv.Atoi(u.Gid)
|
||||
if err := h.ServeUnix("/run/docker/plugins/dvd.sock", gid); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
go h.ServeUnix("/run/docker/plugins/dvd.sock", gid)
|
||||
|
||||
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user