mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e2ceb83a53
This supplements any log driver which does not support reads with a custom read implementation that uses a local file cache. Signed-off-by: Brian Goff <cpuguy83@gmail.com> (cherry picked from commit d675e2bf2b75865915c7a4552e00802feeb0847f) Signed-off-by: Madhu Venugopal <madhu@docker.com>
22 lines
291 B
Go
22 lines
291 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)
|
|
}
|
|
|
|
mux := http.NewServeMux()
|
|
handle(mux)
|
|
|
|
server := http.Server{
|
|
Addr: l.Addr().String(),
|
|
Handler: mux,
|
|
}
|
|
server.Serve(l)
|
|
}
|