mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b0b9a25e7e
This ensures that all log plugins are registered when the log validator is run. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
19 lines
265 B
Go
19 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)
|
|
}
|