mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
20 lines
265 B
Go
20 lines
265 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
l, err := net.Listen("unix", "/run/docker/plugins/plugin.sock")
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
server := http.Server{
|
||
|
Addr: l.Addr().String(),
|
||
|
Handler: http.NewServeMux(),
|
||
|
}
|
||
|
server.Serve(l)
|
||
|
}
|